Refactoring #64
@ -124,13 +124,11 @@ public class FlatteningWrapper15 implements FlatteningWrapper.IFlatteningWrapper
|
||||
|
||||
private final Map<String, Long> timing = new HashMap<>();
|
||||
|
||||
@Override
|
||||
public void start(String name) {
|
||||
private void start(String name) {
|
||||
timing.put(name, System.currentTimeMillis());
|
||||
}
|
||||
|
||||
@Override
|
||||
public long stop(String name) {
|
||||
private long stop(String name) {
|
||||
return System.currentTimeMillis() - timing.getOrDefault(name, System.currentTimeMillis());
|
||||
}
|
||||
|
||||
|
@ -49,8 +49,6 @@ public class FlatteningWrapper {
|
||||
boolean isWorldEditCommand(String command);
|
||||
void setSelection(Player p, Point minPoint, Point maxPoint);
|
||||
|
||||
void start(String name);
|
||||
long stop(String name);
|
||||
EditSession paste(File file, Point pastePoint, PasteOptions pasteOptions);
|
||||
EditSession paste(Clipboard clipboard, Point pastePoint, PasteOptions pasteOptions);
|
||||
void changeColor(Clipboard clipboard, Color color) throws WorldEditException;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren