Remove DeBukkit log

This commit is contained in:
Daniel Saukel 2016-11-26 21:10:03 +01:00
parent 351f10569b
commit c1c04bc187
8 changed files with 0 additions and 33 deletions

View File

@ -185,9 +185,6 @@ public class DungeonsXL extends BRPlugin {
// Stop shedulers
getServer().getScheduler().cancelTasks(this);
// DebukkIt
debug.save();
}
// Init.
@ -671,7 +668,4 @@ public class DungeonsXL extends BRPlugin {
return dGroups;
}
// DebukkIt
public final io.github.dre2n.debukkit.DebukkIt debug = new io.github.dre2n.debukkit.DebukkIt(this);
}

View File

@ -406,7 +406,6 @@ public class PlayerListener implements Listener {
@EventHandler(priority = EventPriority.HIGH)
public void onQuit(PlayerQuitEvent event) {
plugin.debug.start("PlayerListener#onQuit");
Player player = event.getPlayer();
DGlobalPlayer dPlayer = dPlayers.getByPlayer(player);
DGroup dGroup = DGroup.getByPlayer(player);
@ -435,7 +434,6 @@ public class PlayerListener implements Listener {
} else if (dPlayer instanceof DEditPlayer) {
((DEditPlayer) dPlayer).leave();
}
plugin.debug.end("PlayerListener#onQuit", true);
}
@EventHandler(priority = EventPriority.NORMAL)

View File

@ -86,7 +86,6 @@ public class DGamePlayer extends DInstancePlayer {
public DGamePlayer(Player player, DGameWorld world) {
super(player, world.getWorld());
plugin.debug.start("DGamePlayer#init");
Game game = Game.getByGameWorld(world);
if (game == null) {
game = new Game(DGroup.getByPlayer(player));
@ -112,7 +111,6 @@ public class DGamePlayer extends DInstancePlayer {
} else {
PlayerUtil.secureTeleport(player, teleport);
}
plugin.debug.end("DGamePlayer#init", true);
}
/**
@ -233,10 +231,8 @@ public class DGamePlayer extends DInstancePlayer {
* the dClass to set
*/
public void setDClass(String className) {
plugin.debug.start("DGamePlayer#setDClass");
Game game = Game.getByWorld(getPlayer().getWorld());
if (game == null) {
plugin.debug.end("DGamePlayer#setDClass", true);
return;
}
@ -299,7 +295,6 @@ public class DGamePlayer extends DInstancePlayer {
}
}
}
plugin.debug.end("DGamePlayer#setDClass", true);
}
/**
@ -752,7 +747,6 @@ public class DGamePlayer extends DInstancePlayer {
DGamePlayer dPlayer = getByPlayer(player);
if (!dPlayer.finished) {
MessageUtil.sendMessage(this.getPlayer(), DMessages.PLAYER_WAIT_FOR_OTHER_PLAYERS.getMessage());
plugin.debug.end("DGamePlayer#finishFloor", true);
return;
}
}
@ -771,7 +765,6 @@ public class DGamePlayer extends DInstancePlayer {
}
if (invalid) {
plugin.debug.end("DGamePlayer#finishFloor", true);
return;
}
@ -811,7 +804,6 @@ public class DGamePlayer extends DInstancePlayer {
}
}
dGroup.startGame(game);
plugin.debug.end("DGamePlayer#finishFloor", true);
}
/**
@ -869,7 +861,6 @@ public class DGamePlayer extends DInstancePlayer {
DGroupFinishDungeonEvent dGroupFinishDungeonEvent = new DGroupFinishDungeonEvent(dGroup);
if (dGroupFinishDungeonEvent.isCancelled()) {
plugin.debug.end("DGamePlayer#finish", true);
return;
}

View File

@ -149,7 +149,6 @@ public class DEditWorld extends DInstanceWorld {
* whether this world should be saved
*/
public void delete(final boolean save) {
plugin.debug.start("DEditWorld#delete");
EditWorldUnloadEvent event = new EditWorldUnloadEvent(this, true);
plugin.getServer().getPluginManager().callEvent(event);
@ -192,7 +191,6 @@ public class DEditWorld extends DInstanceWorld {
}
}.runTaskAsynchronously(plugin);
}
plugin.debug.end("DEditWorld#delete", true);
}
/* Statics */

View File

@ -382,7 +382,6 @@ public class DGameWorld extends DInstanceWorld {
* @return the potential amount of mobs in the world
*/
public int getMobCount() {
plugin.debug.start("DGameWorld#getMobCount");
int mobCount = 0;
signs:
@ -402,7 +401,6 @@ public class DGameWorld extends DInstanceWorld {
mobCount += ((MobSign) dSign).getInitialAmount();
}
plugin.debug.end("DGameWorld#getMobCount", true);
return mobCount;
}
@ -462,7 +460,6 @@ public class DGameWorld extends DInstanceWorld {
*/
@Override
public void delete() {
plugin.debug.start("DGameWorld#delete");
GameWorldUnloadEvent event = new GameWorldUnloadEvent(this);
plugin.getServer().getPluginManager().callEvent(event);
@ -486,7 +483,6 @@ public class DGameWorld extends DInstanceWorld {
}
}.runTaskAsynchronously(plugin);
}
plugin.debug.end("DGameWorld#delete", true);
}
/**

View File

@ -204,7 +204,6 @@ public class DResourceWorld {
* @return an instance of this world
*/
public DInstanceWorld instantiate(final boolean game) {
plugin.debug.start("DResourceWorld#instantiate");
int id = worlds.generateId();
String name = worlds.generateName(game);
final File instanceFolder = new File(Bukkit.getWorldContainer(), name);
@ -246,7 +245,6 @@ public class DResourceWorld {
}.runTaskAsynchronously(plugin);
}
plugin.debug.end("DResourceWorld#instantiate", true);
return instance;
}
@ -276,7 +274,6 @@ public class DResourceWorld {
* @return the automatically created DEditWorld instance
*/
public DEditWorld generate() {
plugin.debug.start("DResourceWorld#generate");
final String name = worlds.generateName(false);
int id = worlds.generateId();
final File folder = new File(Bukkit.getWorldContainer(), name);
@ -306,7 +303,6 @@ public class DResourceWorld {
}.runTaskAsynchronously(plugin);
}
plugin.debug.end("DResourceWorld#generate", true);
return editWorld;
}

View File

@ -38,11 +38,6 @@
<artifactId>commons</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>io.github.dre2n</groupId>
<artifactId>debukkit</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>io.github.dre2n</groupId>
<artifactId>caliburn</artifactId>

View File

@ -38,7 +38,6 @@
<includes>
<include>io.github.dre2n:commons</include>
<include>io.github.dre2n:caliburn</include>
<include>io.github.dre2n:debukkit</include>
<include>io.github.dre2n:dungeonsxl-*</include>
<include>org.inventivetalent.resourcepackapi:api</include>
</includes>