NoobProtector
NoobProtector
NoobProtector created special for hardcore PVP-enabled servers. It provides a time-limited PVP-protection for new players. When new player joins a server he obtains a protection against PVP-attacks and can learn the server's world, rules, etc. When time limit is overdue player lose his protection and can attack (and can be attacked) by other players.
Features
- Protect player when he joins sever first time
- Only PVP-protection. This plugin did not provide a god-mode.
- Enable protection for any player using commands
- Additional commands for player to disable PVP
- Two kind of time limits - play time (online) and real time
Why do I want it?
- You need to instal NoobProtector if you need to:
- Stop newbies from leaving server until they learn more about it
- Give a more chances for new players to survive in your harcore server
- Grant player a protections again PVP-attack, but not a god-mode
How to use it?
- Install, start server
- Configure plugin (edit the config.yml), restart server
- Try to kill a player that joins your server for first time
Commands
- /pvp-on — remove protection (only protected player must use this command). Player must type this command twice to remove protection.
- /noob help [command] — show help pages
- /noob protect [player] — protect player; if player is not defined will protect you
- /noob unprotect [player] — unprotect player; if player is not defined will unprotect you
- /noob list — show protected player list
- /noob reload — reload configuration. Don't forget some settings (like scheduler time) requires a server restarting
- /noob cfg — show current configuration
Permissions
- noob-protector.pvp-on — allow to use /pvp-on command
- noob-protector.config — allows to use /noob help, /noob cfg, /noob list and /noob reload commands
- noob-protector.protect — allows to use /noob protect command
- noob-protector.unprotect — allows to use /noob unprotect command
Plugin configuration
To configure the plugin you need to edit config.yml file. Here is default config.
Like this plugin?
You don't forget to buy me a chocolate! :)
@fromgate
Seems to work fine, but from time to time the plugins crashed my server...
2013-05-27 19:17:30 [INFO] [NoobProtector] Enabling NoobProtector v0.0.3 2013-05-27 19:17:30 [SEVERE] org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed in "<string>", position 471 2013-05-27 19:17:30 [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) 2013-05-27 19:17:30 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) 2013-05-27 19:17:30 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105) 2013-05-27 19:17:30 [SEVERE] at fromgate.noobprotector.FGUtilCore.InitMsgFile(FGUtilCore.java:499) 2013-05-27 19:17:30 [SEVERE] at fromgate.noobprotector.FGUtilCore.<init>(FGUtilCore.java:99) 2013-05-27 19:17:30 [SEVERE] at fromgate.noobprotector.NPUtil.<init>(NPUtil.java:56) 2013-05-27 19:17:30 [SEVERE] at fromgate.noobprotector.NoobProtector.onEnable(NoobProtector.java:81) 2013-05-27 19:17:30 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2013-05-27 19:17:30 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 2013-05-27 19:17:30 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 2013-05-27 19:17:30 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:282) 2013-05-27 19:17:30 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:264) 2013-05-27 19:17:30 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.j(MinecraftServer.java:304) 2013-05-27 19:17:30 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.e(MinecraftServer.java:283) 2013-05-27 19:17:30 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.a(MinecraftServer.java:243) 2013-05-27 19:17:30 [SEVERE] at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:151) 2013-05-27 19:17:30 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382) 2013-05-27 19:17:30 [SEVERE] at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) 2013-05-27 19:17:30 [SEVERE] Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed in "<string>", position 471 2013-05-27 19:17:30 [SEVERE] at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70) 2013-05-27 19:17:30 [SEVERE] at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50) 2013-05-27 19:17:30 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) 2013-05-27 19:17:30 [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) 2013-05-27 19:17:30 [SEVERE] ... 17 more
Can I get a language file? I want to translate the Plugin into german :)
Dear greetings from Germany, dragon1002
@fichita
:) This version is working fine with 1.5.2. I'm planning to update NoobProtector later, there are some new features to add :)
Please update to 1.5.2 and i will buy u a chocolate ;)
@fichita
Thank you for report. I will check it during updating the plugin.
I already found how to doit. BUT (always there is a BUT ) i have a little issue:
When i protect a player with /noob protect player, the pluggin show me the string in msg_plrisunprotected instead the string in msg_plrisprotected and when i unproted the player, the strings are shown just fine...
Can you correct that ???
BTW i´m almost finished the spanish.lng so i will give it to you later.
I need this plugin with text in SPANISH or please tell me how add them. Thanks in Advance
@juhan23
Hmm... Oh! I know!! That a bug of an old version of my library included in Minecraft. This NPE occurs only when list is empty. Will be fixed at next version.
[SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'noob' in plugin NoobProtector v0.0.3 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:188) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523) at net.minecraft.server.v1_5_R2.PlayerConnection.handleCommand(PlayerConnection.java:966) at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:884) at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:841) at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110) at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:578) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.IndexOutOfBoundsException: Index: 36, Size: 36 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at fromgate.noobprotector.FGUtilCore$PageList.printPage(FGUtilCore.java:333) at fromgate.noobprotector.FGUtilCore.printPage(FGUtilCore.java:342) at fromgate.noobprotector.NPPList.printList(NPPList.java:314) at fromgate.noobprotector.NPCmd.ExecuteCmd(NPCmd.java:143) at fromgate.noobprotector.NPCmd.onCommand(NPCmd.java:52) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
after using /noob list 1
@Karnekdo
Did you test it with 1.2.5? NoobProtector created using bukkitAPI only and I think it will work with 1.2.5 (and may be 1.1-R6).
Could you compile that for version 1.2.5 (tekkit)?
@StrangerPL
Hello, I can give you link to russian translation file
If you going to translate NooProtector to other language please set to "true" value of parameter "language-save" in config.yml and restart server. You will get english.lng file, that you can edit.
If you will create a translation in any language, I'd be grateful if you provide me language file to include it in future versions NoobProtector. :)
Can U give me a translation file ? :)
@livengoodb
You asking about adding time to /noob protect <player> command?
If yes, it's in plans: I'm planning to add command /noob protect <player> rt:HH:MM pt:HH:MM (o something like that)
@garan2314
You going to disable a /pvp-on command? Just don't give permission of this command to players :)
And define time in config :)
@BiweGas @livengoodb
Mmm... Why you require /pvp-off command? You need grant player a protection back? I don't understand what you want?
@lord0o
Sorry, I cannot translate it to Spanish.But if you can help me, I be very thankful and I can integrate your translation into the next version :)
Could you make it that the noobs only can pvp after 60 minutes or something? As a noob, they probably won't know how to activate pvp
@BiweGas
Yes. I use it on DiamCraft.
spanish file ? :)