Skip to content

Instantly share code, notes, and snippets.

View leonardosnt's full-sized avatar
:shipit:
I may be slow to respond.

Leonardo Santos leonardosnt

:shipit:
I may be slow to respond.
View GitHub Profile
ronle
ZoJzmeVBoAv9Sskw76emgksMMFiLn4NM
package teste;
import org.bukkit.Bukkit;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.bukkit.BukkitUtil;
import com.sk89q.worldedit.util.Location;
prop_a4_pile_01
prop_a4_sheet_01
prop_a4_sheet_02
prop_a4_sheet_03
prop_a4_sheet_04
prop_a4_sheet_05
prop_abat_roller_static
prop_abat_slide
prop_acc_guitar_01
prop_acc_guitar_01_d1
~r~ = Red
~b~ = Blue
~g~ = Green
~y~ = Yellow
~p~ = Purple
~o~ = Orange
~c~ = Grey?
~m~ = Darker Grey
~u~ = Black
~n~ = New Line
overkill
sharpshooter
dexterity
cardio
exercise
diving
parkour
sneakybeaky
vitality
immunity
float f = Methods.from(this).find("xisde").invoke();
//Normal
java.lang.reflect.Method md = getClass().getDeclaredMethod("xisde");
md.setAccessible(true);
float x = (float) md.invoke(this);
int f = Methods
.from(this)
// imports ...
import net.minecraft.server.v1_8_R3.PacketPlayOutWorldBorder;
import net.minecraft.server.v1_8_R3.WorldBorder;
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
CraftPlayer cp = (CraftPlayer) p;
WorldBorder w = new WorldBorder();
w.setSize(1);
ItemStack dummy = new ItemStack(Material.AIR);
Iterable<String> split = Splitter.on(',').trimResults().omitEmptyStrings().split("276:2, 10, §3Sei la, DAMAGE_ALL:5, FIRE_ASPECT:2");
Spliterator<String> it = split.spliterator();
/* Id e data */
it.tryAdvance(raw -> {
String[] rawSpl = raw.split(":"); // 0 = id, 1 = data
dummy.setTypeId(Integer.parseInt(rawSpl[0]));
dummy.getData().setData(Byte.parseByte(rawSpl[1]));
searge,name,side,desc
func_100011_g,getIsPotionDurationMax,0,
func_100012_b,setPotionDurationMax,0,Toggle the isPotionDurationMax field.
func_100015_a,isKeyDown,0,Returns whether the specified key binding is currently being pressed.
func_104002_bU,isNoDespawnRequired,2,
func_104055_i,setForceGamemode,1,
func_104056_am,getForceGamemode,2,
func_104112_b,saveExtraData,2,"Save extra data not associated with any Chunk. Not saved during autosave, only during world unload. Currently unimplemented."
func_104140_m,saveChunkData,2,saves chunk data - currently only called during execution of the Save All command
func_110121_a,isNullOrEmpty,0,
@leonardosnt
leonardosnt / Fix.java
Last active September 20, 2016 20:19
File origi = new File("C:\\Users\\Leonardo\\Documents\\Servers\\Eraldia\\plugins\\dtlTraders.jar");
File jarFile = new File("C:\\Users\\Leonardo\\Documents\\Servers\\Eraldia\\plugins\\dtlTraders-patched.jar");
java.nio.file.Files.copy(origi.toPath(), jarFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
File patchedDir = new File("C:\\Users\\Leonardo\\Documents\\Servers\\Eraldia\\plugins\\patched");
patchedDir.mkdir();
JarFile jar = new JarFile(jarFile);