Bukkit Task
parent
20b2c7891b
commit
94f91a175f
8
pom.xml
8
pom.xml
|
@ -132,6 +132,14 @@
|
|||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>8</source>
|
||||
<target>8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
|
@ -51,7 +51,9 @@ public class CommandListenerThread extends Thread {
|
|||
Bukkit.getConsoleSender().sendMessage("Arguments '" + args.toString() + "'");
|
||||
}
|
||||
if (commands.contains(base)) {
|
||||
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), buf);
|
||||
Bukkit.getScheduler().runTask(plugin, () -> {
|
||||
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), buf);
|
||||
});
|
||||
} else if (this.plugin.getConfig().getBoolean("verbose")){
|
||||
Bukkit.getConsoleSender().sendMessage("Input not recognized, ignoring.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue