whimc / portals Goto Github PK
View Code? Open in Web Editor NEWPlugin to handle portals used to navigate the maps used on the server
Plugin to handle portals used to navigate the maps used on the server
End gateway portals will act like normal end gateways and teleport players to a random end island. This behavior should be canceled and overridden by our portal teleportation if the target end gateway is within a portal.
Modify /destination change
to optionally take a location instead of the player's current location. If they decide to supply a location, x
, y
, and z
will be required while yaw
, pitch
, and world
will default to the player's current values for those if they are not supplied.
If a destination (let's call it dest
) is in an invalid world, commands that change its location will silently fail. For example, /destination change dest
won't do anything. The values change in the config but are not updated in game.
Using the same permission on multiple portals causes the permission to be registered twice-breaking it.
Permissions should only be registered/unregistered once when necessary.
Add commands:
/portal near <radius>
List the portals/destinations that are within <radius>
blocks of your current position. Helpful for server management.
README.md
should be modified to contain more information about the plugin. For example, all commands with descriptions and all permissions.
Add commands:
/portal rename <portal> <newName>
/destination rename <destination> <newName>
Good for typos when creating a portal/destination or when reorganizing things.
Any kind of "links" to a portal/destination should be updated accordingly to use the new name.
Add a variable to allow for delay time before teleport (stand in portal for 2 seconds before going, etc)
Add commands:
/portal description <portal> <"description..."|none>
/destination description <destination> <"description..."|none>
Give the ability to add a description to portals and destinations for documentation. If "none" is given as the description argument, it is cleared. Show the description next to the portal/destination name when doing /portal list
and /destination list
. Also show the description in /portal info <portal>
and /destination info <destination>
.
This should be configurable per-portal and default false. This would allow NPCs from Citizens to travel through portals.
Add commands:
/portal history [player]
Keep track of which portals a player has recently gone through. If no player argument is given, your own history is shown. Show how long ago the action occurred. This is useful for server management and finding out which portal you just went through if you are reorganizing portals.
Example /portal history Poi
Portal history for Poi
* (1hr) portal1 -> destination1
* (30m) portal2 -> destination2
* (20s) portal3 -> destination3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.