Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Accept commands

Comments in 'Plugin Development' started by AndrewBit, Jan 4, 2016.

  1. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Hi, I'm trying to do when player (1) do a command /inv player (2), if the player (2) executes /inv accept executes and action, and if the player (2) executes /inv deny, executes a different action.
    There is any way for do this?
  2. Tim // robske Büba
    Offline

    Tim // robske Büba Notable Member

    Joined:
    Feb 26, 2014
    Posts:
    606
    Minecraft User:
    robske_110
    Just look in an existing TPA plugin :p
    My quick IDEA:
    No need for saving down in files...(Server restart will kill this request)
    1. Create array for REQUEST_PENDING and REQUEST_PENDING_DESTINATION
    2. ON /inv Steve Save in REQUEST_PENDING Steve and the name of the Issuer in REQUEST_PENDING_DESTINATION (You can send an msg to steve here too)
    3. ON /inv accept readout the array REQUEST_PENDING check if the issuers Name is there, then READOUT REQUEST_PENDING_DESTINATION at the same readout place to get the name of the issuer
    4. You will figure out the rest

    I am currently in development of a TPA Plugin for my Server, because i have found none
    HotFireyDeath and AndrewBit like this.
  3. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Thanks, I finish the project :p
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder

Share This Page

Advertisement