You are viewing our Forum Archives. To view or take place in current topics click here.
Minecraft plugin coding help!
Posted:

Minecraft plugin coding help!Posted:

Krankeyy
  • New Member
Status: Offline
Joined: Dec 26, 201211Year Member
Posts: 31
Reputation Power: 1
Status: Offline
Joined: Dec 26, 201211Year Member
Posts: 31
Reputation Power: 1
http://hastebin.com/kelegamavo.java


That is the code. Focus on the command part.

When i run the command in game it works once but after that it never works again!!
Please help!
#2. Posted:
UnrealEgg
  • Powerhouse
Status: Offline
Joined: May 30, 201014Year Member
Posts: 438
Reputation Power: 49
Status: Offline
Joined: May 30, 201014Year Member
Posts: 438
Reputation Power: 49
The following acts like a toggle and therefore the code inside the if will not run again:


if(!enabled) {
   enabled = true;


If you want to be able to keep running the command, remove the if(!enabled), otherwise, provide an else which changes the game mode to survival or something.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.