User Tools

Site Tools


tutorial:commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:commands [2020/06/14 05:17]
i509vcb Move old categories below FAQ to be migrated
tutorial:commands [2020/07/14 19:29] (current)
i509vcb dispatcher is not a boolean
Line 159: Line 159:
     public void onInitialize() {     public void onInitialize() {
         CommandRegistrationCallback.EVENT.register((dispatcher,​ dedicated) -> {         CommandRegistrationCallback.EVENT.register((dispatcher,​ dedicated) -> {
-            if (dispatcher) {+            if (dedicated) {
                 TestDedicatedCommand.register(dispatcher);​                 TestDedicatedCommand.register(dispatcher);​
             }             }
Line 174: Line 174:
     public void onInitialize() {     public void onInitialize() {
         CommandRegistrationCallback.EVENT.register((dispatcher,​ dedicated) -> {         CommandRegistrationCallback.EVENT.register((dispatcher,​ dedicated) -> {
-            if (!dispatcher) {+            if (!dedicated) {
                 TestIntegratedCommand.register(dispatcher);​                 TestIntegratedCommand.register(dispatcher);​
             }             }
tutorial/commands.txt ยท Last modified: 2020/07/14 19:29 by i509vcb