Giter Site home page Giter Site logo

basiccommands's Introduction

BasicCommands - A SpigotMC plugin

BasicCommands provides some essential functions:

  • Teleport to other users
    • Teleports player to other player, which have to allow it
    • Teleporting costs XP so it is not too over powered
  • Kill statistics
    • Show current strike and total kills.
  • Providing home functionality
  • Reward interface

Commands:

  • tp PLAYER
    • Teleports user to PLAYER if PLAYER uses /tpaccept
  • tpaccept
    • Accept first teleport request (allow other user to teleport to you)
  • tpa
    • Alias for tpaccept
  • tpdeny
    • First Teleport request got declined
  • tpd
    • Alias for tpdeny
  • tpinfo
    • Shows information about teleportation like current price (XP) and cooldown time (time until prices reduces).
  • sethome
    • Set position of home to current location
  • home
    • Teleports you to your home
  • ret
    • Return to position where you last issued /home or /tp
  • reward
    • Get a reward for your work (item for exp).
  • kills [PLAYER]
    • Shows number of kills in this session and total. If no PLAYER is specified your statistics are shown.

Note: Teleportation costs are increased with each teleport, but costs reduce after some time.

Config:

Example config.yml:

---
teleport:
  return:
    costs: true
    factor: 0.5
  startPrice: 30
  factor: 2
  decreaseTime: 12000
reward:
  items:
    -
     EXP_BOTTLE: 11
    -
     SADDLE: 315
    -
     SLIME_BLOCK: 550
commands: ["tp", "home", "kills"]
  • startPrice is the price of one teleport (in XP).
  • decreaseTime is the time until prices are reduces (after latest teleport) 12000 = 12 ingame hours.
  • factor: Factor how much prices increase per teleport.

Permissions:

Build

Execute:

mvn clean install

JAR gets generated in ./target.

basiccommands's People

Contributors

susnux avatar

Watchers

 avatar  avatar

basiccommands's Issues

[Teleport] Return to last death position

It would be a nice feature to teleport, after you have died, to the position where you have died.
E.g. use /ret after death teleports you to that position (for free because after death you do not have any exp).

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.