Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var GameMode = com.hypixel.hytale.protocol.Gamemode;
- var Player = com.hypixel.hytale.server.core.entity.entities.Player;
- exports = {
- onCollide: function(entity)
- {
- if (entity instanceof Player)
- {
- entity.setGameMode(GameMode.Adventure); // Sets the mode to adventure
- }
- }
- }
- // www.hytale.com/supersecretpage
- exports = {
- onCollide: function(entity)
- {
- if (entity instanceof Player)
- {
- entity.teleport(0, 0, 0); // Moves player to origin
- }
- }
- }
- // www.hytale.com/supersecretpage
Advertisement
Add Comment
Please, Sign In to add comment