Code Monkey home page Code Monkey logo

claimtweaks's Introduction

ClaimTweaks

ClaimTweaks is an addon to GriefPrevention that adds some simple stuff to claims, like per-claim weather, per-claim time, commands on enter/exit, etc. Those features are supposed to be used only by admins, but they will also work if you give the proper permissions to your players. You also don't need to change anything on config files, just drop the plugin on your plugins/mods folder and it's ready!

Features

  • Clear the weather of the player when he enters a specific claim (such as your spawn)
  • Sets the time of the player to a specific time (such as day)
  • Run commands when players enter a specific claim
  • Run commands when players leave a specific claim
  • Bypass commands by granting the claimtweaks.bypass permission

Basic Setup

  1. Install GriefPrevention and PacketGate on your server (they are both dependencies, don't forget it!)
  2. Say you want to change the time of your spawn to always day. Go to your spawn claim and run /ctweaks setTime 6000, you're done!

Command Usage and Permissions (use inside the target claim)

  • /ctweaks addCommand [type] [command]
    • Adds a specific command to the claim you're in, that will run when a player enters/leaves it, depending of type.
    • type is either enter or leave. The command accepts the %player% placeholder.
  • /ctweaks listCommands
    • Lists all the commands assigned to the claim that you're in
  • /ctweaks removeCommand [type] [id]
    • Removes an command from the type (see above) command list of the claim that you're in. id is the ID of the command, shown in listCommands.
  • /ctweaks setClearWeather
    • Toggles the weather state of the claim (sets it to always clear if raining or vice versa)
  • /ctweaks setTime [time]
    • Sets the time of players on the claim that you're in to time, in ticks. See the Minecraft wiki for exact values. Ex: /ctweaks setTime 6000 will set the time to half day.

Download

You can download this plugin on Ore: https://ore.spongepowered.org/Eufranio/ClaimTweaks

If you find any issues, report them to the plugin's issue tracker. If you want, you can donate for me trough PayPal, my paypal email is [email protected].

claimtweaks's People

Contributors

eufranio avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

bloodmc

claimtweaks's Issues

command not working

/ctweaks setTime 6000 Command does not work just gives this/

input command setTime was not a vaild subcommand
setTtime 6000
^

Also tried settime SetTime still nothing

[Suggestion] Count Wilderness as a place to apply ClaimTweaks

Allow wilderness to run ClaimTweak commands.

The practical implication for this is the idea that, if you want all your player claims to have /fly inside of them, but when leaving, the wilderness toggles /fly, you can do so. Right now, you'd have to set every player claim to do this, but by allowing wilderness to use ClaimTweaks, you only have to set it once.

Crashes server

This crashes the server with the latest versions of the grief prevention plugin

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.