This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.minecraft.server.v1_6_R3.CrashReport; | |
import net.minecraft.server.v1_6_R3.MinecraftServer; | |
import org.apache.commons.lang.exception.ExceptionUtils; | |
import org.bukkit.Bukkit; | |
import org.bukkit.craftbukkit.v1_6_R3.CraftServer; | |
import org.bukkit.plugin.Plugin; | |
import org.bukkit.plugin.PluginLogger; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import org.json.simple.JSONObject; | |
import org.json.simple.JSONValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String getPlayersInWorld(World world) { | |
String message = "[World Players] " + "[" + world.getName() + "] "; | |
int playerAmount = world.getPlayers().size(); | |
int playersAdded = 0; | |
for (Player player : world.getPlayers()) { | |
if (playersAdded == 0) { | |
message = message + player.getName() + ""; | |
playersAdded = playersAdded + 1; //playersAdded++; ? | |
} else { | |
message = message + ", " + player.getName(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2014 Goblom. | |
*/ | |
import java.sql.SQLException; | |
/** | |
* | |
* @author Goblom | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.minecraft.server.v1_7_R1.EntityBat; | |
import net.minecraft.server.v1_7_R1.EntityWitherSkull; | |
import net.minecraft.server.v1_7_R1.PacketPlayOutAttachEntity; | |
import net.minecraft.server.v1_7_R1.PacketPlayOutEntityDestroy; | |
import net.minecraft.server.v1_7_R1.PacketPlayOutSpawnEntity; | |
import net.minecraft.server.v1_7_R1.PacketPlayOutSpawnEntityLiving; | |
import net.minecraft.server.v1_7_R1.WorldServer; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Location; | |
import org.bukkit.craftbukkit.v1_7_R1.CraftWorld; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PacketHandler(type = PacketHandleType.INCOMING, forClass = "PacketPlayInUpdateSign") | |
public void onPlayInSignUpdate(PacketEvent event) { | |
Packet packet = event.getPacket(); | |
String[] lines = packet.read("d", String[].class); | |
for (int i = 0; i < lines.length; i++) { | |
lines[i] = "rekt?"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.UUID; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.player.PlayerCommandPreprocessEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.theemeraldisle.core.utils; | |
import net.minecraft.server.v1_7_R4.ChatSerializer; | |
import net.minecraft.server.v1_7_R4.IChatBaseComponent; | |
import net.minecraft.server.v1_7_R4.PacketPlayOutChat; | |
import org.bukkit.Bukkit; | |
import org.bukkit.ChatColor; | |
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer; | |
import org.bukkit.entity.Player; | |
import org.json.simple.JSONObject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Wrapped<T> { | |
private T object; | |
public Wrapped() { | |
this(null); | |
} | |
public Wrapped(T obj) { | |
this.object = obj; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2015 Goblom. | |
* | |
* All Rights Reserved unless otherwise explicitly stated. | |
*/ | |
package codes.goblom.gperms.misc; | |
import codes.goblom.gperms.GoblomPerms; | |
import org.bukkit.Bukkit; | |
import org.bukkit.plugin.java.JavaPlugin; |
OlderNewer