Code Monkey home page Code Monkey logo

townportal's Introduction

TownPortal

TownPotal is a simple plugin which adds to the game teleportation scrolls. You can use them to teleport to places specified in the configuration. There are optional delays, custom names and lores and customizable messages.

Installation

Just drop the plugin into the "plugins" directory and reload/restart your server.

Configuration

Every entry is a separate scroll type. You can have unlimited amount of scrolls. Each of them have those configuration options:

  • name - display name of the scroll item
  • lore - list of the lore lines of the item
  • loc - location of the teleportation target, written like 'x;y;z;world;yaw;pitch' (for example 10.5;20;-30;world_nether;270;45)
  • id - name of the material of the scroll item; should not be usable (like a block, tool or arrow)
  • data - optional data value for the item; you don't have to specify it
  • teleport-msg - message displayed when you use a scroll
  • cancel-msg - message displayed when the teleportation is canceled (for example because the player moved)
  • done-msg - message displayed after the delay has successfully passed
  • fail-msg - message displayed when the player does not meet all conditions
  • delay - amount of seconds the player has to wait until he's teleported; teleportation will be canceled if he moves or takes/deals damage; if you don't want any delay, just set it to 0 or remove this setting, cancel-msg and done-msg won't display then
  • conditions - list of BetonQuest conditions to check before teleportation. If the conditions are not met, nothing will happen.
  • events - list of BetonQuest events to fire after the player has teleported.

Commands

There are two commands:

  • /scroll - gives the player a scroll, requires townportal.give permission
  • /townportalreload - reloads the configuration, requires townportal.reload permission

Permissions

  • townportal.use - allows using portal scrolls, default for players
  • townportal.give - allows giving portal scrolls with a command
  • townportal.reload - allows reloading the plugin with a command

BetonQuest

There is an event which gives a scroll to the player (so you don't have to do that with a command. The syntax for the event is simply "scroll ", for example "scroll beton".

Note that you can add "&2Quest Item" line to lore of the scroll, and it will become BetonQuest's quest item, which means players will be able to store it in their backpacks.

townportal's People

Contributors

riledupcrow avatar

Watchers

 avatar  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.