[ADMN/GEN] OKRealmRestrict v1.3.2 - World access restriction using Permissions [1.0.0-R1]

Discussion in 'Inactive/Unsupported Plugins' started by Kalman Olah, Jul 4, 2011.

  1. Offline

    Kalman Olah

    ORR - OKRealmRestrict
    by Kalman Olah​
    Latest version: 1.3.2 ( Download )​
    Would you like to buy me a drink? some useless stuff from Amazon? a car?​
    [​IMG]
    What is OKRealmRestrict?
    OKRealmRestrict is a lightweight little Bukkit plugin that allows you to restrict access to certain worlds on your server, using Permissions, GroupManager, PermissionsEx or Bukkit's permissions. And if that wasn't enough, it also allows you to ban certain players from entering specific worlds!
    Where can I get OKRealmRestrict?
    You can always download the latest version of OKRealmRestrict right here.
    It also comes with a handy auto-updater that will download updates to the /plugins/OKRealmRestrict/update folder.

    How do I set up OKRealmRestrict?
    Setting up OKRealmRestrict is pretty easy. It can all be summed up into a couple of easy steps.
    1. You download the latest version of OKRealmRestrict(here).
    2. You extract OKRealmRestrict.jar to your /plugins/ folder.
    3. You start your server so OKRealmRestrict can generate a configuration file.
    4. You fill in your configuration file like this:

      Code:
      global:
                      main-world-name: Worldname
                      nopermission-message: You don't have access to this world.
                  
      where 'main-world-name' is the name of your main world, and 'nopermission-message' is the message a user will see if they don't have the permission node required to access a world.
    5. You give your users the permission nodes needed to access the worlds you want them to be able to access:
      If you would like a user to be able to access a world called "Terra", you should give them the permission node "okrealmrestrict.world.Terra" in both the world they will be entering Terra from, and Terra itself.
      Note: If you don't give them the permission node "okrealmrestrict.world.Terra" in the world "Terra", but only in the world they enter the world "Terra" from, they will be teleported to the main world's spawn upon their next login.
      e.g.: World is called "TestWorld" -> Permission node: "okrealmrestrict.world.TestWorld".
    6. You restart your server.
    How do I use OKRealmRestrict?

    Next to restricting world access based on Permissions groups, OKRealmRestrict also allows moderators to ban players from certain worlds, even if they have the permission nodes to access those worlds. Aside from this, a moderator's permission node can override any need for world-specific permission nodes and world-specific bans.
    Commands:
    Permission nodes:
    Changelog:
    • Version 1.3.2
      • Added anonymous stat tracking. Can be turned off in config.
      • Updated auto-updater.
      • Cleaned code.
      • Uses new bukkit configuration API.
    • Version 1.3.0
      • Renamed to OKRealmRestrict.
      • Changed all permissions nodes to okrealmrestrict.<node>.
      • Added support for GroupManager, Bukkit's permissions, PermissionsEx, Permissions.
      • Added to OK Suite.
    Older versions (open)

    • Version 1.2.5
      • Auto-updater bugfix.
    • Version 1.2.4
      • Minor bugfix to fix issues when the auto-updater can't connect to the update server.
    • Version 1.2.3
      • Minor bugfix.
    • Version 1.2.2
      • Made final changes to the auto-updater.
    • Version 1.2.1
      • Updated the auto-updater.
    • Version 1.2.0
      • RealmRestrict now automatically downloads new versions to the /plugins/RealmRestrict/update/ folder.
    • Version 1.1.0
      • Fixed some bugs with teleports getting cancelled.
      • If a player doesn't have the required permission node for a world in the world itself, but does have it in a world he can enter from, RealmRestrict will let that player access the world, but will teleport him to the main world's spawn upon logging in.
        e.g.: Player1 has permission node "rr.world.TestWorld1" in TestWorld2, but not in TestWorld1 -> RealmRestrict lets that player in to TestWorld1 from TestWorld2, but teleports him back to the main world's spawn upon his next login.
    • Version 1.0.0
      • Initial release.
     
    GmK likes this.
  2. Offline

    Kalman Olah

    Updated to v1.1.0
     
  3. Offline

    Kalman Olah

    • Version 1.2.0
      • RealmRestrict now automatically downloads new versions to the /plugins/RealmRestrict/update/ folder.

    • Version 1.2.1
      • Updated the auto-updater.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  4. Offline

    Kalman Olah

    • Version 1.2.2
      • Made final changes to the auto-updater.
     
  5. Offline

    maetthew

    Wow @Kalman Olah you develop the exact plugins I need :) This seems like another great one. VERY GOOD WORK!
     
  6. Offline

    Kalman Olah

    Version 1.2.3
    • Minor bugfix.
    Glad you like it :)
     
  7. Offline

    Kalman Olah

    • Version 1.2.4
      • Minor bugfix to fix issues when the auto-updater can't connect to the update server.
     
  8. Offline

    Vision

    Code:
    18:52:41 [SEVERE] Could not pass event PLAYER_TELEPORT to RealmRestrict
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
            at me.kalmanolah.rr.OKmain.CheckPermission(OKmain.java:132)
            at me.kalmanolah.rr.OKPlayerListener.onPlayerTeleport(OKPlayerListener.java:80)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:300)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:216)
            at cz.Plague.bukkit.PlgSetspawn.PlgSetspawn.onCommand(PlgSetspawn.java:54)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:338)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:727)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:87)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    18:52:42 [SEVERE] Could not pass event PLAYER_TELEPORT to RealmRestrict
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
            at me.kalmanolah.rr.OKmain.CheckPermission(OKmain.java:132)
            at me.kalmanolah.rr.OKPlayerListener.onPlayerTeleport(OKPlayerListener.java:80)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:300)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:377)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:346)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:87)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    18:52:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'rr' in plugin RealmRestrict v1.2.5
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:338)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:727)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:87)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
            at me.kalmanolah.rr.OKmain.CheckPermission(OKmain.java:138)
            at me.kalmanolah.rr.OKCmd.onCommand(OKCmd.java:29)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    Not working.
     
  9. Offline

    Kalman Olah

    What Permissions version are you using?
     
  10. Offline

    Vision

    PermissionsEx (PEX) ver. 1.12.

    If it isn't supposed to work for PEX - I would kindly like to ask for you to support it. I would be really glad to use your plugin and appreaciate it.
     
  11. Offline

    Kalman Olah

    Version 1.3.0
    • Renamed to OKRealmRestrict.
    • Changed all permissions nodes to okrealmrestrict.<node>.
    • Added support for GroupManager, Bukkit's permissions, PermissionsEx, Permissions.
    • Added to OK Suite.
    All of my other plugins support PEX. You should check them out :).
     
  12. Offline

    Vision

    I see.

    How many cookies do you want to support PEX on this plugin? :)
    seriously, I really need it :$

    EDIT:
    I feel a bit stupid now, reading every note except the 'Added support' one, out of happiness.
    Thank you!
     
  13. Offline

    Kalman Olah

    ...Read the post again. I clearly state I did add support for PermissionsEx :).
     
    Vision likes this.
  14. Offline

    Kalman Olah

    Once again, confirmed to be working on CB 1185.
     
  15. Offline

    Kabino

    I'm having the same problem. Realm Restrict does work, but this error is very annoying.
     
  16. Offline

    Vision

    Works for me flawlessly.
     
  17. Offline

    Kalman Olah

    Stop using Permissions 2.7.x.
     
  18. Offline

    Jrcrit

    how to you make it load PEX it keeps loading the bukkit permissions file .....
     
  19. Offline

    Kalman Olah

    It uses PEX if PEX is present.
     
  20. Offline

    WoodenAxe

    getting a lot of this when players /tp and /spawn and whatnot... everything still works.. but it's cluttering logs :-D

    23:13:23 [SEVERE] Could not pass event PLAYER_TELEPORT to OKRealmRestrict
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.CraftServer.getWorld(CraftServer.java:616)
    at me.kalmanolah.rr.OKPlayerListener.onPlayerTeleport(OKPlayerListener.java:61)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:300)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:386)
    at org.getspout.spout.player.SpoutCraftPlayer.updateNetServerHandler(SpoutCraftPlayer.java:988)
    at org.getspout.spout.SpoutPlayerListener.onPlayerJoin(SpoutPlayerListener.java:50)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:129)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:121)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:39)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  21. Offline

    Kalman Olah

    Version 1.3.2
    • Added anonymous stat tracking. Can be turned off in config.
    • Updated auto-updater.
    • Cleaned code.
    • Uses new bukkit configuration API.
     
  22. Offline

    mattdh

    Next step, self evolving code!
    Praise the CubeList overlord!
     
  23. Offline

    Vision

    Code:
    18:01:52 [SEVERE] Could not pass event PLAYER_PORTAL to OKRealmRestrict
    java.lang.NullPointerException
            at me.kalmanolah.rr.OKPlayerListener.onPlayerPortal(OKPlayerListener.java:19)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:323)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
            at net.minecraft.server.ServerConfigurationManager.f(ServerConfigurationManager.java:322)
            at net.minecraft.server.EntityPlayer.b(EntityPlayer.java:280)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:305)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Please fix this, if possible, as soon as possible.

    Thank you in advance, Kalman - Loving all your plugins!
     
  24. Offline

    Kalman Olah

    That error shouldn't be happening at all. It's something on your end.
     
  25. Offline

    Vision

    Do you have any clue to as what it could be? (not Multiverse-Core/Portals, right?)
    Should I list my plugins?

    Appreciated - Thank you!
     
  26. Offline

    Kalman Olah

    Please post your OKRealmRestrict version, config.yml and Craftbukkit version :).
     
  27. Offline

    Jamie Tees

    [SEVERE] Could not pass event PLAYER_PORTAL to OKRealmRestrict
    java.lang.NullPointerException
    Thats with MV portal, can you fix?
     
  28. Offline

    Kalman Olah

    If you post the full error.
    Also, only RBs are supported. Anything above 1337 may not work for now.
     
  29. Offline

    Jamie Tees

    This happens with 1337 too.
    21:10:53 [SEVERE] Could not pass event PLAYER_PORTAL to OKRealmRestrict
    java.lang.NullPointerException
    at me.kalmanolah.rr.OKPlayerListener.onPlayerPortal(OKPlayerListener.java:19)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:323)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:321)
    at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:281)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:306)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     

Share This Page