Timings v2

TODO: Add #isStopping to FullServerTickHandler#stopTiming in patch 191
expose isRunning
This commit is contained in:
Aikar
2016-02-29 18:48:17 -06:00
parent 30e04bfa2f
commit d4d8262f6e
32 changed files with 3030 additions and 400 deletions
@@ -0,0 +1,25 @@
package org.bukkit.command;
import org.jetbrains.annotations.NotNull;
/**
* @deprecated Timings will be removed in the future
*/
@Deprecated(forRemoval = true)
public class BufferedCommandSender implements MessageCommandSender {
private final StringBuffer buffer = new StringBuffer();
@Override
public void sendMessage(@NotNull String message) {
buffer.append(message);
buffer.append("\n");
}
@NotNull
public String getBuffer() {
return buffer.toString();
}
public void reset() {
this.buffer.setLength(0);
}
}