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 // Stop shedulers
getServer().getScheduler().cancelTasks(this); getServer().getScheduler().cancelTasks(this);
// DebukkIt
debug.save();
} }
// Init. // Init.
@ -671,7 +668,4 @@ public class DungeonsXL extends BRPlugin {
return dGroups; 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) @EventHandler(priority = EventPriority.HIGH)
public void onQuit(PlayerQuitEvent event) { public void onQuit(PlayerQuitEvent event) {
plugin.debug.start("PlayerListener#onQuit");
Player player = event.getPlayer(); Player player = event.getPlayer();
DGlobalPlayer dPlayer = dPlayers.getByPlayer(player); DGlobalPlayer dPlayer = dPlayers.getByPlayer(player);
DGroup dGroup = DGroup.getByPlayer(player); DGroup dGroup = DGroup.getByPlayer(player);
@ -435,7 +434,6 @@ public class PlayerListener implements Listener {
} else if (dPlayer instanceof DEditPlayer) { } else if (dPlayer instanceof DEditPlayer) {
((DEditPlayer) dPlayer).leave(); ((DEditPlayer) dPlayer).leave();
} }
plugin.debug.end("PlayerListener#onQuit", true);
} }
@EventHandler(priority = EventPriority.NORMAL) @EventHandler(priority = EventPriority.NORMAL)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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