Skip to content

Commit

Permalink
Minor cleanup with CommandItems.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Dec 27, 2016
1 parent d8a2fc6 commit 2e8a0e5
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -114,10 +114,8 @@ public boolean enable() {


if(definitions.size() > 0) { if(definitions.size() > 0) {
Bukkit.getScheduler().runTaskTimer(CraftBookPlugin.inst(), new Runnable() { Bukkit.getScheduler().runTaskTimer(CraftBookPlugin.inst(), new Runnable() {

@Override @Override
public void run () { public void run () {

Iterator<Entry<Tuple2<String, String>, Integer>> iterator = cooldownPeriods.entrySet().iterator(); Iterator<Entry<Tuple2<String, String>, Integer>> iterator = cooldownPeriods.entrySet().iterator();


while(iterator.hasNext()) { while(iterator.hasNext()) {
Expand All @@ -129,7 +127,7 @@ public void run () {
iterator.remove(); iterator.remove();
} }
} }
}, 1, 20); }, 0, 20);
Bukkit.getScheduler().runTaskTimer(CraftBookPlugin.inst(), new Runnable() { Bukkit.getScheduler().runTaskTimer(CraftBookPlugin.inst(), new Runnable() {


@Override @Override
Expand Down Expand Up @@ -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(command == null) return null;


if(event instanceof EntityDamageByEntityEvent) { if(event instanceof EntityDamageByEntityEvent) {
Expand Down

0 comments on commit 2e8a0e5

Please sign in to comment.