[INACTIVE][ADMN] GroupUsers v1.1 - Compatible with hey0's groups.txt and users.txt

Discussion in 'Inactive/Unsupported Plugins' started by authorblues, Jan 16, 2011.

  1. Offline

    authorblues

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Now with 100% less General 1.6+ Compatibility!


    UPDATE: Some plugins are incorrectly using hooks, such as Priority.Normal, where they should be using Priority.Monitor. Plugins that compete with mine for precedence will NOT work!

    GroupUsers utilizes hmod's groups.txt and users.txt to recreate the functionality of hmod. You don't need to do ANYTHING to integrate your plugin with mine. Essentially, set other plugins to allow anyone to do any action, and then limit usage through my plugin. This allows admins to have a central location for specifying command allowances.

    This is meant to be used with the format specified in Hey0's flatfile configuration.

    Download GroupUsers 1.1 [Against Build 33]
    Download GroupUsers 1.2 [Against Build 44, 48, 50]
    Download GroupUsers 1.3 [Against Build 50] (Implements /modify)
    Download GroupUsers 1.4.2 [Against Build 76, 80+] (Case-insensitive)

    Get the builds specified above at the Bamboo Build Repo:
    http://bamboo.lukegb.com/browse/BUKKIT-CRAFTBUKKIT/history

    Source code: https://github.com/authorblues/GroupUsers

    This plugin does NOT support users belonging to multiple groups.

    To use this, exactly as with hMod, you'll need to write a groups file (groups.txt), of the configuration specified in the above file. Commands listed for a group are the commands that group has access to, as well as all commands allowed by the groups they inherit from. Again, the format is shown on the flatfile configuration page. You should specify a default group: if you don't, users that would end up in the default users list will be allowed to use no commands will be given a restriction level of 0 (normal, can build).

    So who appears in the default group? Anyone given the "default" group in users.txt, or any name NOT appearing in users.txt. Otherwise, for users specified in users.txt, their group is specified in that line.

    I will not be having new users added to the users.txt file with the "default" group. That would be stupid. Large servers, like the Reddit servers, have 1000's of unique users per week. Letting users default to "default" as opposed to putting them in users.txt is the sane way.

    IN REGARDS TO /modify: Hey0 specified 2 formats: a normal format and a new format. My plugin makes use of the new format for /modify statements.


    Compatible with the following plugins:


    (NEW) FOR PLUGIN DEVELOPERS:

    Note: Be sure to name the jar file "GroupUsers.jar" when using it as a plugin, for java to be able to locate the plugin.

    Importing GroupUsers as a library in your own plugin should allow you to determine some information about Players. Import the library with:
    Code (Text):
    1.  import com.bukkit.authorblues.GroupUsers.GroupUsers;
    Then, you should be able to use it like so:
    Code (Text):
    1. Player player = // ...
    2.  
    3. Plugin plugin = this.getServer().getPluginManager().getPlugin("GroupUsers");
    4. if (plugin != null)
    5. {
    6.     GroupUsers groupUsers = (GroupUsers) plugin;
    7.     if (groupUsers.playerCanUseCommand(player, "/time"))
    8.     {
    9.         // CODE HERE
    10.     }
    11. }
    The available methods follow (more to be added by request):
    Code (Text):
    1.  
    2. public List<String> getGroups();
    3. public Boolean playerCanUseCommand(Player player, String command)
    4. public Boolean isInGroup(Player player, String group)
    5.  
     
  2. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    test:
    general.settings.txt -> :admins
    or
    general.settings.txt -> :<yourname>
     
  3. Offline

    bogboom

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    Why would I do that when he says specifically:
    "You don't need to do ANYTHING to integrate your plugin with mine. Essentially, set other plugins to allow anyone to do any action, and then limit usage through my plugin"
     
  4. Offline

    ScytheX10

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    -1 non builder not working.
    default:8::default:-1
     
  5. Offline

    authorblues

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That is correct. I can't see any reason why default users would be allowed to use /i, unless there is something that you're not showing me. Your general.settings file is correct, but something is going wrong between users.txt and groups.txt. I'm not sure. I'll try to figure out what is going wrong tomorrow. I have been coding for 14 hours. I'm going to bed.
     
  6. Offline

    ScytheX10

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Has anyone got the block protection with -1 working? I need to rule out my stupidity.
     
  7. Offline

    authorblues

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    What version of craftbukkit?
     
  8. Offline

    ScytheX10

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The latest build from git ( compiled with mvn) I'm not sure how to check version numbers =S
     
  9. Offline

    Fewmets

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  10. Offline

    ScytheX10

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just swapped with latest artifact. Users can still build while default rank.
    default:8::default:-1

    All other functionality works. I'm primarily concerned with the non-building status.
     
  11. Offline

    authorblues

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Updated. Building is not allowed for users with -1. Built against craftbukkit 48.
     
  12. Offline

    ScytheX10

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Still not working? Maybe I'm doing something wrong here?
    Just confirmed I downloaded the latest craftbukkit and your plugin..

    MD5 sum for your plugin: 88e6592fb5a0d73f5b39add0e84fffdc GroupUsers-1.2.jar

    Note: I'm removing the user in users.txt then restarting server and then testing.
    Other stuff: I'm using build 48 from bamboo... etc
    Other plugins:
    BigBrother
    General
    GroupUsers
    Guardian
    Noon
     
  13. Offline

    CapturedHD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am using craftbucket-0.0.1
     
  14. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  15. Offline

    x3point14x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yea default users can still break blocks for me too, this is the only main thing that i want, for users that join my server to require rights to build.
     
  16. Offline

    TowelieDOH

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Using version 1.1, restrictions don't work for me.
    default users can use any command.
    The users.txt and groups.txt are ok because i've got them straight from hMod, and the General plugin is set to allow anyone (*) to use any commands.
    However, default users can use any commands.
    Am I doing anything wrong ?
     
  17. Offline

    CapturedHD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    nothign seems to work for me either, i even tried out the different builds of craftbucket. I know how this creator of this plug-in feels tho. I apreshiate (i know its spelt wrong) your work i have been looking for stuff and trying things constantly to get my server back up and running and off of this temperary map. I wish i new how to code plug-ins.
     
  18. Offline

    sycot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    is there any way for this to ignore the capital letters in peoples names?

    GroupUsers 1.2
    CraftBukkit build #44

    osirisx:headmod (didn't work)
    OsirisX:headmod (worked)
     
  19. Offline

    tekac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    lol its frustrating me to. I figured that out quickly with mods and sponsors. However now that he updated default to -1, its going to take ages to correct builder groups names :( I peak at 100 players
     
  20. Offline

    b10

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Nothing works we r all going 2 die this is a disaster ! :mad: [not just this plugin most don't work ]
     
  21. Offline

    authorblues

    My BukkitDev Profile
    My Plugins (1)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Version 1.1 still works, but its built against #33, so if you really need it, go for that version. 1.2 is supposed to work with 1.2, but it works for some servers and not for others, and I can't seem to figure out what is wrong. More work tomorrow, I suppose.
     
  22. Offline

    SeeD419

    My BukkitDev Profile
    My Plugins (8)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm using the plugin with the build that you built it against and I get this:

    SEVERE: Could not load plugins\GroupUsers-1.2.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:115)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:80)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:37)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.bukkit.authorblues.GroupUsers.GroupUsers.<init>(org.bukkit.plugin.PluginLoader, org.bukkit.Server, org.bukkit.plugin.PluginDescriptionF
    ile, java.io.File, java.lang.ClassLoader)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:76)
    ... 8 more
     
  23. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Today at 7:39 AM: I have been coding for 14 hours. I'm going to bed.

    Now it's 9:03 :D
     
  24. Offline

    TowelieDOH

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Has anyone had any luck with making the plugin do what it's supposed to do ? (restrict command to certain groups).
    I appreciate the plugin, but at the moment my only use for it is colored names :)) since the restrictions do not work.
    Tested both 1.1 and 1.2 btw, and using hMod users.txt and groups.txt
     
  25. Offline

    Jobsti

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    restrictions do not work on plugins with no config file, like WolrdEdit, TelePlus or MyWarp, all users can teleport.
     
  26. Offline

    TowelieDOH

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    not even with general plugin... and that has a config file.
     
  27. Offline

    CloseKnight

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I get these errors when I run my server

    2011-01-16 10:22:55 [INFO] [GroupUsers] version [1.2] is loaded!
    2011-01-16 10:22:55 [SEVERE] [MYHOME]: Error loading org.sqlite.JDBC
    2011-01-16 10:22:55 [SEVERE] [MYHOME]: Error loading org.sqlite.JDBC
    2011-01-16 10:22:55 [SEVERE] [MYHOME]: Error loading org.sqlite.JDBC
    2011-01-16 10:22:55 [INFO] MyHome 1.3 enabled
    vStopFire version 1.0 is enabled!
    2011-01-16 10:22:55 [INFO] Done! For help, type "help" or "?"
    138 recipes
    2011-01-16 10:22:57 [INFO] MelonFace98 [/81.216.162.53:49433] logged in with entity id 4
    Player count: 1
    Jan 16, 2011 10:22:58 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_JOIN to GroupUsers
    java.lang.NoSuchMethodError: org.bukkit.event.player.PlayerEvent.getPlayer()Lorg/bukkit/entity/Player;
    at com.bukkit.authorblues.GroupUsers.GroupUsersPlayerListener.onPlayerJoin(GroupUsersPlayerListener.java:51)
    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:128)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:199)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:74)
    at net.minecraft.server.NetLoginHandler.b(SourceFile:121)
    at net.minecraft.server.NetLoginHandler.a(SourceFile:47)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-16 10:23:04 [INFO] CloseKnight [/192.168.1.2:51210] logged in with entity id 5
    Player count: 2
    Jan 16, 2011 10:23:04 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_JOIN to GroupUsers
    java.lang.NoSuchMethodError: org.bukkit.event.player.PlayerEvent.getPlayer()Lorg/bukkit/entity/Player;
    at com.bukkit.authorblues.GroupUsers.GroupUsersPlayerListener.onPlayerJoin(GroupUsersPlayerListener.java:51)
    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:128)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:199)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:74)
    at net.minecraft.server.NetLoginHandler.b(SourceFile:121)
    at net.minecraft.server.NetLoginHandler.a(SourceFile:47)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Jan 16, 2011 10:23:17 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_CHAT to GroupUsers
    java.lang.NoSuchMethodError: org.bukkit.event.player.PlayerChatEvent.getPlayer()Lorg/bukkit/entity/Player;
    at com.bukkit.authorblues.GroupUsers.GroupUsersPlayerListener.onPlayerChat(GroupUsersPlayerListener.java:26)
    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:137)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:199)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:525)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:63)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-16 10:23:17 [INFO] <CloseKnight> hel
     
  28. Offline

    TowelieDOH

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  29. Offline

    CloseKnight

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Well that solves the myhome problems but GroupsUsers still gives me errors
     
  30. Offline

    Atomix

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    this plugin doesn't add players to users.txt.. what am I supposed to do it manually lol?
     
  31. Offline

    HotelErotica

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yep, He hasn't added the feature to add people to groups (yet), although the permissions system itself doesn't seem to work for me, its letting everyone do whatever command
     

Share This Page