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 revisionPrevious revision
Next revisionBoth sides next revision
tutorial:commands [2020/06/14 05:17] – Move old categories below FAQ to be migrated i509vcbtutorial:commands [2020/07/14 19:29] – dispatcher is not a boolean i509vcb
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: 2024/02/23 14:22 by allen1210