Inactive [GEN] EasyRules 1.1 - A list of rules simplyfied [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Streammz, Apr 14, 2011.

  1. Offline

    Streammz

    Having trouble looking for an simple rules plugin?
    Want to have rules sorted by category, instead of a plain list?
    Want an INFINITY number of pages and don't need a /reload?

    This plugin has it all.

    Features
    • Rules sorted by category.
    • Easy to edit/add pages and/or rules.
    • COLOUR support.
    • No need to /reload for changes to be loaded.
    Commands

    Just 1 simple command:

    • /rules <category>
    Changelog (open)


    1.1 added joinmessage= & prefix= in rules.txt

    1.0 First release
    0.8 First working version


    rules.txt example (open)

    Code:
    joinmessage=@red@READ THE @green@/RULES@blue@!@@
    prefix=@gold@PREFIX@@
    
    [main]List of pages:   @red@(usage: @aqua@/rules <page 1-X>   @red@)@@
    [main]Page @aqua@1@@: @aqua@General@@ - @gold@Main rules of this server.@@
    [main]Page @aqua@2@@: @aqua@Building@@ - @gold@How to and what you shouldn't build.@@
    [main]Page @aqua@3@@: @aqua@Items@@ - @gold@Banned items on the Server.@@
    [main]Page @aqua@4@@: @aqua@PVP@@ - @gold@For more information about PVP.@@
    [main]Page @aqua@5@@: @aqua@TNT@@ - @gold@Specific TNT rules.@@
    [main]Page @aqua@6@@: @aqua@Wolves@@ - @gold@The rules about wolves Aka. dogs.@@
    
    [1]General rules of the server.
    [1]- No griefing / stealing
    [1]- No clientside mods ( Hacks, Flymods )
    [1]- Respect other players. Admins are people too.
    [1]  @red@Breaking ANY rules@@ will lead to a warning or/and ban.
    
    [2]Rules about building
    [2]- @gold@Realistic@@ building, no @aqua@floating@@ buildings etc.
    [2]- @red@ONLY!@@ create towns if you got permission by any admin.
    [2]- Every building must have a sign with your nick on it.
    [2]- @aqua@ghost@@houses will be removed, @gold@chest@@ will be stored.
    [2]- There is no Protection outside of the maincity.
    
    [3]Banned Items and their rules
    [3]@darkred@Lava@@ - Not banned if used for any other then Grief/PVP
    [3]@red@Fire@@ (& flint&steel) - Same rule as lava
    [3]@red@TNT@@ - Read @aqua@/rules 5@@
    
    [4]Will be added later.
    
    [5]Rules of TNT usage
    [5]- No TNT inside/near towns/buildings.
    [5]- No overuse of TNT. ( Spamming )
    [5]- @red@NEVER!@@ use TNT for greifing purposes.
    [5]- No cannons
    
    [6]Rules about wolves Aka. dogs
    [6]- Only 1 (tamed) wolf per account.
    [6]- Using 1 dog in PVP is allowed.
    
    note: You don't HAVE to use numbers, you can name pages how you'd like.

    How the rules.txt works (open)

    How the rules.txt works
    It is very simple:
    There are 2 settings currently which you can change:
    joinmessage=
    prefix=
    Both support colours like the rest of the plugin

    To add a category, make a new tag [name]
    There is 1 main category named "main", this will always be shown if people just use /rules
    You can use the main category to point to the other pages, like I did in the example.

    Note: You don't have to /reload for changes to take place.

    How to add colours in your rules (open)

    How to add COLOURS in your rules.
    There are some @tags@ which you can add to make colours in the line.

    @@ @red@ @pink@ @gold@ @blue@ @gray@ @aqua@ @green@ @black@ @yellow@ @darkred@
    @darkblue@ @darkgray@ @darkaqua@ @darkgreen@ @darkpurple@

    (The @@ is the regular chat colour (white), becouse it saves file space and isn't hard to remember)


    You can see some examples in the example above.

    Screenshots:

    [​IMG]
    [​IMG]
    (The same rules here as in the example, so you can compare these 2)
    Wiki
    Its not supported by me, but its useful ;)
    Wiki

    Downloads:
    v1.1.0 - Download

    Source Code
     
    Soldan, CraftOz and neX!Tem like this.
  2. Offline

    RazorFlint

  3. Offline

    Juze

    Clean up the post a bit, see the plugin submission guidelines above.
     
  4. Offline

    Streammz

    Changed the post, I hope this is better (?)
     
  5. Offline

    neX!Tem

    I use this on my server, Because it's so simple and yet so good.
     
  6. Offline

    Juze

    Please don't include the + in version #, you never know which build breaks it.
     
  7. Offline

    Streammz

    Changed, sorry.. wasn't aware that was wrong becouse I saw some plugins with that, too
     
  8. Offline

    Puttputt7

    It would be VERY VERY VERY awesome if you could somehow make it configurable to make the main /rules appear when people log in, that way they are aware it even exists.
     
  9. Offline

    Streammz

    settings will be added in 1.1, with that in it too ;)

    bump &
    Version 1.1 live:
    added:
    • joinmessage=
    • prefix=
    in rules.txt, see post "how rules.txt works" for instructions

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  10. Download link is BROKEN!!
     
  11. Offline

    Streammz

    Sorry, fixed. Thought i updated the dropbox file but it seems i removed it instead
    Fixed
     
  12. Offline

    Adondriel

    so i'm getting this error when i log in
    16:03:37 [SEVERE] Could not pass event PLAYER_JOIN to EasyRules
    java.lang.NullPointerException
    at net.gamesketch.bukkit.easy.playerListener.onPlayerJoin(playerListener.java:49)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:204)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:27)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Please help!!!
     
  13. Offline

    Streammz

    Correct me if I'm wrong, but it guess you had no join message? (not that it's wrong, but just to be sure)
    Anyhow, the new version should prevent this from happening, if it does though, please tell me.
     
  14. Thanks ;)
     
  15. Offline

    Adondriel

    Well, im not really sure how to my welcome message i used to have something in the properties file that would change it but i can't find that anymore and thanks for updating :D

    are there any more colors that you could get?
    :D

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

    Streammz

    Minecraft doesn't support more colours then these 16, so nope :rolleyes:
     
  17. Best rule plugin EVER!
     
    Streammz likes this.
  18. Offline

    icare

    Nice plugin! Really usefull finely have every thing good noticed! People are now actually following the rules.

    Greetz iCare
     
  19. Offline

    Streammz

    Works for the new RB, #684.. NO UPDATE REQUIRED
     
  20. Offline

    jonassm

    Cool little plugin here Streammz
     
  21. Offline

    knopik

    will support Cyrillic?
     
  22. Offline

    Sergeant1337

    Hi!
    I need help with the rules.txt.
    I wrote this and it dosen't work(I know, it's not in english :p):


    [Info]
    prefix=Du får inte gå in på andras område!
    prefix=Fråga en OP för att få byggtillstånd.
    prefix=Man får INTE svära eller vara otrevlig mot andra spelare.
    prefix=Straffet blir 48 tim ban.
    prefix=Gör man det två gånger blir det en permanent ban.

    [Pengar]
    prefix=Vi handlar med coins.
    prefix=Skriv /Money
    prefix=för att få reda på hur mycket coins du har.
    prefix=Skriv /money Pay <Användarnamn> <Belopp>
    prefix=
    prefix=Exempel:
    prefix=/Money Pay Sergeant1337 500
    prefix=Det ger Sergeant1337 500 coins.

    [Hunger]
    prefix=Här på servern blir du hungrig.
    prefix=På två minuter blir du 10 % hungrig.
    prefix=När det når 100 % börjar du svälta och kommer förlora liv.
    prefix=För att förhindra det kan du äta mat.
    prefix=Skriv /Hunger
    prefix=För att få reda på hur många % du är hungrig.
    prefix=Skriv /food list
    prefix=För att se hur mycket % dom olika målen mat ger.
     
  23. Offline

    Streammz

    use this instead:

    Code:
    prefix=@green@RULES@@
     [Info]Du får inte gå in på andras område!
     [Info]Fråga en OP för att få byggtillstånd.
     [Info]Man får INTE svära eller vara otrevlig mot andra spelare.
     [Info]Straffet blir 48 tim ban.
     [Info]Gör man det två gånger blir det en permanent ban.
     
     
     [Pengar]Vi handlar med coins.
     [Pengar]Skriv /Money
     [Pengar]för att få reda på hur mycket coins du har.
     [Pengar]Skriv /money Pay <Användarnamn> <Belopp>
     [Pengar]
     [Pengar]Exempel:
     [Pengar]/Money Pay Sergeant1337 500
     [Pengar]Det ger Sergeant1337 500 coins.
     
     [Hunger]Här på servern blir du hungrig.
     [Hunger]På två minuter blir du 10 % hungrig.
     [Hunger]När det når 100 % börjar du svälta och kommer förlora liv.
     [Hunger]För att förhindra det kan du äta mat.
     [Hunger]Skriv /Hunger
     [Hunger]För att få reda på hur många % du är hungrig.
     [Hunger]Skriv /food list
     [Hunger]För att se hur mycket % dom olika målen mat ger.
    
     
  24. Offline

    iamthekitty

    Just a suggestion, but could you possibly add another layer of categories.
    eg:
    Main points to first categories, General, Building and Mods.
    General points to a list of Banned Items, Offensive Language, Disagreements.
    Banned Items has the pages with a list of banned items.

    I'm not sure if that makes sense but I think it would add even more to the plugin.
    Thanks,
    TheKitty
     
  25. Offline

    Streammz

    You can make whatever you want be pointing to whatever you like, its highly 'configurable' ;)
     
  26. Offline

    tommy99

    is it tested on build 740
     
  27. Offline

    PCITJunior

    Does it work with craftbukkit version 733? I use the default text file from the first post and CommandBook with disabled rules function.
    In the console is all correct (Easy Rules enabled) but ingame it shows if I writting only /rules, that the category doesn't exit and I have to use /rules (that what I had do) or /rules <category>.

    Sorry for my bad English.
    Caesar2011, ingame nick
     
  28. Offline

    PlanetOfGames

    Works fine with 740 :p so yeah..
     
  29. Offline

    PCITJunior

    Ok, so but I use a Plugin which need 733. Let's Watch for a update.

    Edit: Updated, Works fine.
     
  30. Offline

    Streammz

    @PCITJunior This should work with any build for minecraft 1.4/1.5, but I rather only store the most used builds in the title
     

Share This Page