- 15 Jul 2014 09:00
#131193
KuroMakai » 15 Jul 2014 06:16 wrote:Alright, I looked into this quite a bit and here's what I came up with and it works effectively.
/region flag <region> deny-spawn unknown
What this does it will deny all spawns of things not listed in the entity files found at:
http://jd.bukkit.org/rb/apidocs/org/buk ... yType.html
Next up use either commandsigns or serversigns (my preference) and form a custom permission. Use the command /invsee and make sure a player's inventory is completely clear, in which you can give the node of - ex serversigns.use.safari
From there you can have the sign issue out /give command so also ex - svs add <server> /give <player> 4173 16
In which will have your console issue out a quarter stack of safari balls. On the next line you can again - svs add <server> /warp <player> safarievent as an example. Hope this all helps.
Thanks for taking the time to look in to it for me. The only questions/commands now I have are:
With the first issue, would that just stop people being able to throw Pokemon out I take it as the entity is unknown? But wouldn't that also deny Pokemon spawning in the region?
And with the second issue, it's not that I need to give players things, here's how it works on my server:
They pull a lever, which teleports them in to a roof with lots of pressure plates activating a command block to clear the inventory of the closest player, once out of there they can purchase safari balls from the Pokemart.
The issue with people getting items in, is that people can glitch items through from the outside using enormous Pokemon, (I've expanded the walling very thick where possible so this cannot happen, but some areas I can't expand anymore) and people also receive 2 ultraballs per vote link they do, which I've denied the /vote command within the Safari zone, but people can always just visit the website to get around this.
So my issue was that I was curious if there was a way to check in that region if any other item other than safari is in someone's inventory and if so delete those items, if not teleport them away from the safari zone.