Add command to plugin.yml because of 1.13

Brigadier should be used in the future. This will suffice for now.
This commit is contained in:
Magnus Ulf 2018-12-29 18:42:53 +01:00
parent 0ea4a86663
commit 3bc7008174
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,13 @@ description: ${project.description}
authors: [Cayorion] authors: [Cayorion]
load: startup load: startup
api-version: 1.13 api-version: 1.13
commands:
mcore:
description: MassiveCore basecommand
permission: massivecore.basecommand
massivecore:
description: MassiveCore basecommand
permission: massivecore.basecommand
permissions: permissions:
# -------------------------------------------- # # -------------------------------------------- #
# THE REAL NODES # THE REAL NODES

View File

@ -215,7 +215,7 @@ public abstract class MassivePlugin extends JavaPlugin implements Listener, Name
// can only happen after others have been initialised. // can only happen after others have been initialised.
public void activateOne(Object object) public void activateOne(Object object)
{ {
boolean debug = true;//MassiveCoreMConf.get() != null && MassiveCoreMConf.get().debugEnabled; boolean debug = MassiveCoreMConf.get() != null && MassiveCoreMConf.get().debugEnabled;
// Try collection // Try collection
if (object instanceof Iterable) if (object instanceof Iterable)