rules

#15 - published 2 years ago

Rules

This plugin will add a custom set of 4 rules (which you can add more if you need to) for you to customize and be able to be displayed with the command /rules.

 

/rules can be executed by both console and players to allow visibility of the rules without having to connect to the server.

 

Configuration:

DisplayOnConnect – Displays the rules when a player connects to the server.

<Rule>…</Rule> – Contains the necessary information for the rules. Rules will be displayed in order as seen in the config file. Colors now function in hexadecimal format (FFFF00)

Permissions:

<Permission Cooldown=”0″>rules</Permission>

 

Translation:

rule  – {0} – will display the rules set in the config file.

pages – Next page: &quot;/rules {0}&quot;. – will display to the player how to navigate to the next page.

endofrules – You have reached the end of the rules. – Displayed once the player reaches the last page of the rules.

 

Please report any bugs and submit any suggestions.

 

Upcoming Features:

  • None planned as of right now.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<RocketRulesConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DisplayOnConnect>false</DisplayOnConnect>
  <Rules>
    <Rule>
      <configText>Example Rule 1</configText>
      <configColor>FFFF00</configColor>
    </Rule>
    <Rule>
      <configText>Example Rule 2</configText>
      <configColor>00FF00</configColor>
    </Rule>
    <Rule>
      <configText>Example Rule 3</configText>
      <configColor>FF0000</configColor>
    </Rule>
    <Rule>
      <configText>Example Rule 4</configText>
      <configColor>0000FF</configColor>
    </Rule>
  </Rules>
</RocketRulesConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="rule" Value="{0}" />
  <Translation Id="pages" Value="Next page: &quot;/rules {0}&quot;." />
  <Translation Id="endofrules" Value="You have reached the end of the rules." />
</Translations>

Commands and permissions


/rules <page>

Permissions: rules

Lists the rules set by the user.


Git changelog


86bd0f274d84348 2017-03-23 10:22:02

Referencing Error/Problem

    de9661230c5eb0d 2017-03-23 10:19:05

    Still fixing rocket compatibility.

      9f77bf747780a4c 2017-03-23 10:13:51

      Few Changes

        86636fafb4f3f6e 2016-11-12 22:01:19

        Update README.md

          da0cc0e55559cf0 2016-11-10 12:24:01

          asf

            0b95157c433dc7b 2016-11-10 11:47:42

            V 2.0.0.1

            • Fixed error for the permissions for the command
            • Removed temporary files/non used files

            1463d8ac9e8dc52 2016-11-08 16:20:54

            Version 2.0.0.0

            • Increased ammount of rules. Pasting multiple more <Rule>...</Rule> settings allows for more rules.
            • Added paging for when there is more than 3 rules.
            • Added more notifications.
            • Simplified translations.
            • Fixed some minor errors (including command execution + syntax)

            61111bdd51c9171 2016-11-08 16:19:26

            Version 2.0.0.0

            • Increased ammount of rules. Pasting multiple more <Rule>...</Rule>
            • settings allows for more rules.
            • Added paging for when there is more than 3 rules.
            • Added more notifications.
            • Simplified translations.
            • Fixed some minor errors (including command execution + syntax)

            9715c15616125ed 2016-11-07 15:26:32

            Version 1.0.1.0 - the readme.md fix

              f0986270febee90 2016-11-07 11:20:58

              Version 1.0.1.0

              • Added setting to display messages on player connect
              • Changed console logging color
              • Added logging of current settings in console

              e63959faffce046 2016-11-07 09:39:10

              Added build status + download

                0a43fd81c92fd3a 2016-11-07 09:14:59

                Bug

                • Fixed a bug with the syntax asking for player. It has been removed.

                d5bef2208fd4599 2016-11-07 09:04:21

                Changed name to fix build issue

                • Applying to rocket standards

                855d6238f1f5664 2016-11-07 09:00:45

                Added Lib folder

                • Applying to rocket standards

                7d47ab6acb76117 2016-11-07 08:58:43

                Changed order of files

                • Applying to rocket standards for plugins

                f344f0317e39b44 2016-11-07 08:53:49

                Fixed translation and config boxes

                  6529d33896e072e 2016-11-07 08:50:59

                  Version 1.0.0.0

                  • Finnished first public build.

                  Download

                  Build #15
                  By downloading this file, you agree to our license terms.

                  Repository

                  github.com

                  License

                  MIT

                  Author

                  persiafighter