Inactive [SEC] Rules v1.1 - Whitelisting via Rules [1240]

Discussion in 'Inactive/Unsupported Plugins' started by DigitalTyrant, Mar 19, 2011.

  1. Offline

    DigitalTyrant

    Rules - Whitelisting via Rules

    Version: 1.1 [jar]
    CraftBukkit: [b1240jnks]
    Description: Rules is a plugin that allows system administrators to deliver rules using a command.
    Administrators can disable build/destroy and chat until a visitor has accepted the rules.​

    Files (open)
    Rules.jar: Main plugin file


    Rules/rules.txt: File containing your server's rules. Can be colorized using the codes below.
    Automatically generated.​

    Rules/config.yml: File that stores settings and User status, layout and options below.

    Automatically generated.​
    config.yml (open)
    AllowChat: [true/false]
    Specifies whether a user can chat before accepting rules.​

    AllowBuild: [true/false]

    Specifies whether a user can build/destroy before accepting rules.​

    ShowOnLogin: [true/false]

    Specifies whether a login message is displayed reminding users that have not accepted the rules to do so. Useful if an motd plugin is in use.​

    LoginMessage: Message

    Message to be displayed if ShowOnLogin is set to true.​

    MessageColor: '&b'

    Defines default color for messages related to the Rules plugin.​

    Users:

    Username:
    Shown: [true/false] - Set to true when a user has been shown the rules​
    Accepted: [true/false] - Set to true when a user accepts the rules​

    Default values are bolded.
    Commands (open)
    /rules

    Displays server rules to the user. Sets Shown to true for that user in config.yml​

    /acceptrules

    Command used to accept rules. User must first view rules in order to accept them. Sets Accepted to true for that user in config.yml​


    /disablerules
    Command to allow an Op or authorized user via Permissions plugin to disable the Rules plugin. Designed for debugging. Server must be reloaded using /reload by an Op, reload from console, or by restarting the server in order to re-enable the Rules plugin. Currently in development.​

    /rulesviewed username

    Command to allow an Op or authorized user via Permissions plugin to view whether a user has seen the rules. Currently in development.​

    /rulesaccepted username

    Command to allow an Op or authorized user via Permissions plugin to view whether a user has accepted the rules. Currently in development.​
    Changelog:
    Version 1.1 - [jar]
    fixed inaccurate version number reported in console​
    rule.txt is now created upon first run​
    updated event handler for CraftBukkit RB #617​
    disabled running of /acceptrules from console​
    cleaned code, removing and rearranging​
    fixed potential issue with Ops accepting rules​
    added command /disablerules​
    added command /rulesviewed​
    added command /rulesaccepted​

    Version 1.0 - [jar]
    Initial Release!​


    Thanks and Enjoy!
     
    Zacky1 and joby890 like this.
  2. Offline

    Buckethead

    any way u can update this i like this idea
     
  3. Offline

    Marco Moreira

    This plugin need updating to work for 1060!!! like now!
     
  4. Offline

    Dustin545

    can i set it to where you cant move when you login in less you accept them
     
  5. Offline

    etaxi341

    Need Plugin Update Please!
     
  6. Offline

    wheresmyhotdog

    This is an awesome plugin, but needs an update :(
     
  7. Offline

    DigitalTyrant

    I have tested in 1240 and updated the title accordingly. Please let me know if you come across any issues and I will address them directly.
     
  8. Offline

    Buckethead

    pemissions?
     
  9. Offline

    brettsalyer

    Hey love the plugin! but the login message wont display and it is set to true and there is a message....what do i do?
     
  10. Offline

    DigitalTyrant

    hmm, what version of craftbukkit are you running?
     
  11. Offline

    brettsalyer

    the latest
     
  12. Offline

    DigitalTyrant

    I will do some testing
     
  13. Offline

    brettsalyer

  14. Offline

    mrjoeman1200

    Permissions Nodes?
     
  15. Offline

    brettsalyer

    nah i got it figured out.
     
  16. Offline

    Synful0ne

    One REALLY annoying thing thats been bugging me about this is i have a meaty bit of information for rules to avoid any ban confusion.
    and i have 15 lines of text displaying various things (EXAMPLE)
    And it will get cutt off at the top. Id REALLY like it if you could possibly for stuff that over.. a certain line number. it will be put on (Page2) and you have to view the last page aswell before accepting.
     
  17. Offline

    DigitalTyrant

    I will probably add this functionality soon
     
  18. Offline

    Synful0ne

    Thanks. would be greatly appreciated. people over on my forum can be pretty stupid about not reading every rule. like to hold everything i can against them.. >.>
     
  19. Offline

    bobbysmithyy

    This doesn't work with CommandBook installed
     
  20. Offline

    Nickexp

    AWSOME.finaly a plugin that makes no one can build till they accept the rules.
     
  21. Offline

    Zathras

    @DigitalTyrant How about a command like:
    Code:
    /rules reset 
    I'd like it to set all users Accepted to false because I changed the rules and want them to accept again after reading them.

    Code:
    /rules reload
    I'd like it to reload the config.yml and the rules.txt.
     
  22. Offline

    DigitalTyrant

    I like these, I will add them when I work on this plugin. Thanks!
     
  23. Offline

    SeaKey

    Is there anyway you can make it where we can change the command. So instead of /acceptrules it can be /fillintheblank
     
  24. hey great plugin.

    but i think you should make the plugin to change permissions in the common permissions plugins.
    bPermissions
    PEX
    PermissionBukkit
    etc.
     
  25. Offline

    Minecrafters2

    When I use this plugin, when we typed a message it would appear 2x. So I removed the plugin and reinstalled it, result? Same problem D:
    Craftbukkit: 1.0.1
    Plugin: Used the latest
    Help
     
  26. Offline

    ZhrugHD

    Hello im experiencing a problem when i install the plugin on 1.0.0 server. It does not protect blocks or chat if they dont accept the rules. they can still break blocks and talk in chat and also it duplicates the chat. can you help me?
     
  27. Offline

    SpeedyX

    It's a great Plugin, I'm using it since 6 month now. But can you add that you can change the message "Type /acceptrules to gain acces" in the config-file? My server is german and not every user can speak english...
     
  28. Offline

    Buckethead

    Is it possible to make it so they HAVE to do rules before they can type /rules. i have alot of people who justdo /acceptrules and then whine about being jailed cuz thhey didnt actually read them
     
  29. Offline

    ParadoXz

  30. Offline

    Pongofrooger

    Hello I have a problem

    I have the latest recommend build of craftbukkit.
    when i run it with ''Rules'' there isnt a folder for ''Rules''
    thisis the message what i get:

    14:34:39 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.5-R4.0
    -b2222jnks (MC: 1.2.5) (Implementing API version 1.2.5-R4.0)
    14:34:40 [SEVERE] Could not load 'plugins\Rules (1).jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bu
    kkit/event/player/PlayerListener
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:149)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:230)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:189)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListene
    r
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.codej.rules.Rules.<init>(Rules.java:26)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:145)
    ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListe
    ner
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 27 more

    Who Can help me please ?
     

Share This Page