Suggested name: PreventSwimming What I want: Whenever the player enters the water and swims, he is damaged to the point where he is forced back onto land. He also receives a CONFIGURABLE message saying something along the lines of "&cYou are not allowed to swim!" The point of this is if, for example, you have an island on your world, you can keep the players stuck on the island and prevent them from swimming somewhere else. In the config, an option to change the damage and message the player receives would be encouraged Ideas for commands: No commands needed for this plugin. Ideas for permissions: preventswimming.adminbypass When I'd like it by: Soon™
Haha, the better it is...well...the better it is! Thanks! I await with eagerness the first testable version!
Rungario <Edit by Moderator: Redacted mediafire url> Everything is configurable like you asked, you can change the enabled world and damage and the message recived.
Twisted_Panda ... Could you tell me how you got color codes to work with the config? that was my only problem
timtower this is what I had: p.sendMessage(ChatColor.translateAlternateColorCodes('&', getConfig().getString("message")));
timtower it works, but if the config is: message: &aYou can't swim! and then I reload, it changes to: message: can't swim! it works if it is message: You &acan't swim! but that will only make "can't swim!" colored
Wow, you guys are great. You should make a project page for the plugin so that others can find and use it, even if you don't plan on ever updating it.
I just thought I'd add to your idea. I think that they shouldn't be damaged upon touching water but instead a simple check to see how deep the water is and if it meets the threshold then start damaging them either while in the deep-end or until they exit the water (evil option, lol).