Permalink
Browse files

Minor cleanup with CommandItems.

  • Loading branch information...
me4502 committed Dec 27, 2016
1 parent d8a2fc6 commit 2e8a0e594dbc3808805b3383beec05623788b88b
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/main/java/com/sk89q/craftbook/mechanics/items/CommandItems.java
@@ -114,10 +114,8 @@ public boolean enable() {
if(definitions.size() > 0) {
Bukkit.getScheduler().runTaskTimer(CraftBookPlugin.inst(), new Runnable() {
-
@Override
public void run () {
-
Iterator<Entry<Tuple2<String, String>, Integer>> iterator = cooldownPeriods.entrySet().iterator();
while(iterator.hasNext()) {
@@ -129,7 +127,7 @@ public void run () {
iterator.remove();
}
}
- }, 1, 20);
+ }, 0, 20);
Bukkit.getScheduler().runTaskTimer(CraftBookPlugin.inst(), new Runnable() {
@Override
@@ -532,8 +530,7 @@ else if (comdef.type == CommandType.SUPERUSER) {
}
}
- public static String parseLine(String command, Event event, Player player) {
-
+ static String parseLine(String command, Event event, Player player) {
if(command == null) return null;
if(event instanceof EntityDamageByEntityEvent) {

0 comments on commit 2e8a0e5

Please sign in to comment.