spawnmob limits and permissions #57


  • Enhancment
  • Accepted
Open
Assigned to jonathantje
  • _ForgeUser7927111 created this issue Mar 31, 2015

    Include permission limitations for /spawnmob count and type.

    Example:
    uc.spawnmob.creeper -- node to spawn type
    uc.spawnmob.creeper.10 -- node if present to limit count
    uc.spawnmob.10 -- node to give general count limit

    This would be very usefule feature for creative server perks.

    Thanks,
    NODEX

  • _ForgeUser7927111 added the tags New Enhancment Mar 31, 2015
  • Jonathantje removed a tag New Apr 1, 2015
  • Jonathantje added a tag Accepted Apr 1, 2015
  • Jonathantje posted a comment Apr 1, 2015

    So in order to spawn 10 creepers, you need: uc.spawnmob.creeper.10 and uc.spawnmob.10? Or does uc.spawnmob.10 give you acces to spawning 10 of any mob type?

  • Jonathantje removed a tag Waiting Apr 1, 2015
  • Jonathantje added a tag Replied Apr 1, 2015
  • Jonathantje removed a tag Replied Apr 1, 2015
  • Jonathantje added a tag Waiting Apr 1, 2015
  • _ForgeUser7927111 posted a comment Apr 2, 2015

    @Bammerbom: Go

    /spawnmob creeper 10
    if uc.spawnmob.creeper and uc.spawnmob.creeper.10 exist then run function
    elseif uc.spawnmob.creeper then run function with uc.spawnmob.10 used in count check
    elseif uc.spawnmob.10 and count =< uc.spawmob.10 then run function
    elseif uc.spawnmob.all run function
    else deny.
    

    Best way I could describe it... sudoish code. Hope this helps.

    Another option is uc.spawnmob.limit.10 if you want to keep parsing easier on permission checking. This way you have a goto limit for the general count and anything attached to uc.spawnmob.creeper.10 is unique in the tree.

    I have been putting the plugin through production testing with 30+ users... I have LOTS to report. Do you mind a bunch of new tickets?


    Edited Apr 2, 2015
  • _ForgeUser7927111 removed a tag Waiting Apr 2, 2015
  • _ForgeUser7927111 added a tag Replied Apr 2, 2015
  • Jonathantje posted a comment Apr 2, 2015

    @NodexServers: Go

    I don't mind a lot of tickets. Just put every issue in a ticket.

    I will think about this permissions.


    Edited Apr 2, 2015
  • _ForgeUser7927111 posted a comment Apr 3, 2015

    @Bammerbom: Go

    If no explicit node is defined for a mob type, then uc.spawn.10 would be used for count limiting.

  • Jonathantje posted a comment Apr 3, 2015

    @NodexServers: Go

    I understand. Accepted.

  • Jonathantje removed a tag Replied Apr 3, 2015
  • Jonathantje added a tag Accepted Apr 3, 2015
  • Forge_User_33956957 unassigned issue from jonathantje Sep 23, 2015
  • Forge_User_33956957 self-assigned this issue Sep 23, 2015
  • Forge_User_33956957 removed a tag Accepted Sep 23, 2015
  • Forge_User_33956957 added a tag Started Sep 23, 2015
  • Forge_User_33956957 removed their assignment Sep 29, 2015
  • Forge_User_33956957 assigned issue to jonathantje Sep 29, 2015
  • Jonathantje removed a tag Started May 6, 2016
  • Jonathantje added a tag Accepted May 6, 2016

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