Giter VIP home page Giter VIP logo

timerestricter's Introduction

Spigot Plugin: TimeRestricter

Officially supported Minecraft versions:

  • 1.19

Where can I download the plugin?

  • Head over to the releases on the right side to download the latest version.

What can this simple plugin do for me?

  • Kick players if they have no time left
  • Configure at which time and at which day the plugin should refill the time
  • Pause all timers at any given time

Config

./TimeRestricter/config.yaml
enabled: true
opPlayersHaveFullPermissions: true
allowBasicCommandsWithoutPermissions: true
availableMinutes: 100
fillUpTimeHour: 4
fillUpTimeMinute: 15
fillUpTimeDays:
  - 1
  - 2
  - 3
  - 4
  - 5
  - 6
  - 7
  
The numbers on the `fillUpTimeDays` property are days:
(1 = Mon, 2 = Tue, 3 = Thu, 4 = Wed, 5 = Fri, 6 = Sat, 7 = Sun)

The `fillUpTime*` properties describe when the time should be reset for every player.

The `allowBasicCommandsWithoutPermissions` property gives every user basic access like:
- /tr-time
- /tr-time <player_name>
- /tr-playerstime

- /tr-enabled
- /tr-available Minutes
- /tr-fillupTime
- /tr-servertime

With the `allowBasicCommandsWithoutPermissions` every player has the ability to 
view and check states, not change them.

If you want to completly control who can access which commands, turn the option 
off and use the listed permissions on the bottom.

Commands

- /tr-time                         Shows the player the remaining time.
- /tr-time <player_name>           Lookup remaning time of other players.
- /tr-playerstime                  View remaining time of all players.

- /tr-enabled                      Show if plugin enabled or disabled.
- /tr-enabled <true/false>         Enable or disable the plugin (no reload or restart needed, pauses the timer).

- /tr-availableMinutes             Show how much minutes are configured in config.
- /tr-availableMinutes <minutes>   Set the amount of minutes in config.

- /tr-fillupTime                   Show when time gets filled up again.
- /tr-fillupTime 06:10 1234567     Set time and days (1 = Mon, 2 = Tue, etc) when the time fillup should occour.
  
- /tr-servertime                   Show current time from the server.
  
- /tr-timereset                    Reset time for everybody.

Permissions

  
- timerestricter.view_time_self
- timerestricter.view_time_others
- timerestricter.view_time_all_player

- timerestricter.view_plugin_enabled
- timerestricter.change_plugin_enabled
  
- timerestricter.view_available_minutes
- timerestricter.change_available_minutes

- timerestricter.view_filluptime
- timerestricter.change_filluptime
  
- timerestricter.reset_time

timerestricter's People

Contributors

davbauer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.