'IF' statements #84


  • Accepted
Open
Assigned to _ForgeUser9042228
  • _ForgeUser7336661 created this issue Dec 27, 2012

    What is the enhancement in mind? How should it look and feel?

    I'll try to explain this as best as I can:

    Let's say you have a command. If you put, say, ^ before the /, it would be an IF statement. If this command is able to be executed, and it returns something like, "You cannot do this!", or "You could not be put into this team!", it would be 'false'. A command that returns 'false' makes the command sign unable to continue running the commands after the IF statement, because it returned false.

    If it were to return something like "You executed this command!", or "You were put into this team!", it would be 'true'. A command that returns 'true' enables the command sign to continue the next commands until finished.

    The one thing I want for this is factions support. I need it to check if a player is put into a faction, and if they are, it continues to the teleport commands.

    Please provide any additional information below.

    Please try to add something like this relatively soon. It's vital for my server to function.

  • _ForgeUser7336661 added the tags Enhancment New Dec 27, 2012
  • _ForgeUser9042228 posted a comment Dec 29, 2012

    I see, so it's like a exception throw. I don't know if commands can return an error level to the plugin (usually its 0 for success and non-zero for errors), but if they can with what we use, then I'll make this.

    It's a definite maybe.

  • _ForgeUser9042228 unassigned issue from _ForgeUser7307234 Dec 29, 2012
  • _ForgeUser9042228 self-assigned this issue Dec 29, 2012
  • _ForgeUser9042228 removed a tag New Dec 29, 2012
  • _ForgeUser9042228 added a tag Accepted Dec 29, 2012
  • _ForgeUser7336661 posted a comment Dec 30, 2012

    @CJxD: Go

    Thanks!

  • _ForgeUser9042228 posted a comment Jan 12, 2013

    @1337minecrafer: Go

    I'll implement this if people vote favourably for using a full language processor (see poll)


To post a comment, please login or register a new account.