Skip to content

Instantly share code, notes, and snippets.

View jaredtbates's full-sized avatar

Jared Bates jaredtbates

View GitHub Profile
@aadnk
aadnk / ForceEnd.java
Created February 10, 2013 03:56
Force the end credits on an unsuspecting player.
package com.comphenix.example;
import net.minecraft.server.v1_4_R1.EntityPlayer;
import net.minecraft.server.v1_4_R1.Packet70Bed;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.craftbukkit.v1_4_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
@vemacs
vemacs / Tutorial.md
Last active July 29, 2022 10:00
Instructions for setting up a Spigot server using mark2 on a fresh Ubuntu Server 14.04 LTS install.

This guide is outdated

Please check out the official installation guide here: https://github.com/mark2devel/mark2/blob/master/INSTALL.md

Prerequisites

  • a vswap OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 14.04 LTS installed (architecture doesn't matter), or a dedicated server
  • patience and a willingness to learn
  • approximately 10 minutes of time
@PaulBGD
PaulBGD / RollbackRunnable.java
Created October 14, 2013 02:53
RollbackRunnable Resource 1
package me.ultimate.Arena;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.block.BlockState;
import org.bukkit.scheduler.BukkitRunnable;
public class RollbackRunnable extends BukkitRunnable {
@cfstras
cfstras / status.html
Last active February 6, 2023 03:24
Simple Minecraft Server status box using http://api.syfaro.net/
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<script>
var rq = '//api.syfaro.net/server/status';
var error = 'unknown';
var classes = {
error: "fa-question",
false: "fa-times",
true: "fa-check",
};
@Goblom
Goblom / Hologram.java
Created February 21, 2014 16:10
A not completed version of a hologram type system in bukkit using NMS... A list of what is missing is located above the author tab
/*
* The MIT License
*
* Copyright 2014 Goblom.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
public class Hologram {
private static final double distance = 0.25;
private List<String> lines = new ArrayList<String>();
private List<Integer> ids = new ArrayList<Integer>();
private boolean showing = false;
private Location location;
public Hologram(String... lines) {
this.lines.addAll(Arrays.asList(lines));
import java.lang.reflect.*;
import java.util.*;
import org.bukkit.*;
import org.bukkit.entity.*;
/**
*
* Assorted methods for manipulating packets to spawn fake Ender Dragons and show players a
* status bar at the top of the screen using their health bar. This class uses reflection, so
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@DarkSeraphim
DarkSeraphim / SkinChanger.java
Last active May 5, 2020 18:37
Notchifier - Thou shall be Notch
package net.darkseraphim.test;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
import com.comphenix.protocol.wrappers.EnumWrappers;
import com.comphenix.protocol.wrappers.PlayerInfoData;
import com.comphenix.protocol.wrappers.WrappedGameProfile;
anonymous
anonymous / WynncraftSkinChangerScript.java
Created December 29, 2014 21:48
Wynncraft skin changing script for the people who want to know
package net.crunkle.membrane;
import net.minecraft.server.v1_7_R4.EntityPlayer;
import net.minecraft.server.v1_7_R4.EnumChatVisibility;
import net.minecraft.server.v1_7_R4.TileEntity;
import net.minecraft.util.com.mojang.authlib.GameProfile;
import net.minecraft.util.com.mojang.authlib.properties.Property;
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
import org.bukkit.entity.Player;