formatting

This commit is contained in:
Charlie 2014-07-28 11:53:28 -04:00
parent 4deb7589ae
commit 52d335ddf6
5 changed files with 908 additions and 912 deletions

View File

@ -256,7 +256,6 @@ public class DiscoParty {
Location loc; Location loc;
World world = player.getWorld(); World world = player.getWorld();
double x = player.getLocation().getX(); double x = player.getLocation().getX();
double z = player.getLocation().getZ(); double z = player.getLocation().getZ();
for (int i = 0; i < sheep; i++) { for (int i = 0; i < sheep; i++) {
@ -431,7 +430,6 @@ public class DiscoParty {
/* for (Block block : this.floorBlocks) { /* for (Block block : this.floorBlocks) {
this.randomizeFloor(block); this.randomizeFloor(block);
}*/ }*/
} }
private float getPentatonicNote() { private float getPentatonicNote() {

View File

@ -88,7 +88,6 @@ public final class DiscoSheep extends JavaPlugin {
for (String key : getConfig().getConfigurationSection("max.guests").getKeys(false)) { for (String key : getConfig().getConfigurationSection("max.guests").getKeys(false)) {
DiscoParty.getMaxGuestNumbers().put(key, getConfig().getInt("max.guests." + key)); DiscoParty.getMaxGuestNumbers().put(key, getConfig().getInt("max.guests." + key));
}*/ }*/
} }
void reloadConfigFromDisk() { void reloadConfigFromDisk() {
@ -106,7 +105,6 @@ public final class DiscoSheep extends JavaPlugin {
/* for (Map.Entry<String, Integer> entry : DiscoParty.getDefaultGuestNumbers().entrySet()) { /* for (Map.Entry<String, Integer> entry : DiscoParty.getDefaultGuestNumbers().entrySet()) {
getConfig().set("default.guests." + entry.getKey(), entry.getValue()); getConfig().set("default.guests." + entry.getKey(), entry.getValue());
}*/ }*/
saveConfig(); saveConfig();
} }
@ -219,7 +217,7 @@ public final class DiscoSheep extends JavaPlugin {
} }
} }
@SuppressWarnings( "deprecation" ) @SuppressWarnings("deprecation")
// UUIDs not necessary since DiscoSheep only lasts for one session at most // UUIDs not necessary since DiscoSheep only lasts for one session at most
// and permissions will handle onJoin DiscoSheep // and permissions will handle onJoin DiscoSheep
boolean partyOtherCommand(String[] players, CommandSender sender, DiscoParty party) { boolean partyOtherCommand(String[] players, CommandSender sender, DiscoParty party) {

View File

@ -20,14 +20,14 @@ public class GlobalEvents implements Listener {
this.parent = parent; this.parent = parent;
} }
@EventHandler (priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
public void onPlayerQuitEvent(PlayerQuitEvent e) { public void onPlayerQuitEvent(PlayerQuitEvent e) {
String name = e.getPlayer().getName(); String name = e.getPlayer().getName();
parent.stopParty(name); parent.stopParty(name);
// stop party on player quit or else it will CONTINUE FOR ETERNITY // stop party on player quit or else it will CONTINUE FOR ETERNITY
} }
@EventHandler (priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
public void onPlayerJoinEvent(PlayerJoinEvent e) { public void onPlayerJoinEvent(PlayerJoinEvent e) {
Player player = e.getPlayer(); Player player = e.getPlayer();
parent.partyOnJoin(player); parent.partyOnJoin(player);