mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-09-17 18:27:54 +02:00
Added a /freeze command for fun
This commit is contained in:
@@ -17,6 +17,11 @@ public class vMinecraftListener extends PluginListener {
|
||||
public void disable() {
|
||||
log.log(Level.INFO, "vMinecraft disabled");
|
||||
}
|
||||
public void onPlayerMove(Player player, Location from, Location to) {
|
||||
if(vMinecraftSettings.frozenplayers.contains(player)){
|
||||
player.teleportTo(from);
|
||||
}
|
||||
}
|
||||
|
||||
//=====================================================================
|
||||
//Function: onChat
|
||||
@@ -26,6 +31,7 @@ public class vMinecraftListener extends PluginListener {
|
||||
// and it is enabled
|
||||
//Use: Checks for quote, rage, and colors
|
||||
//=====================================================================
|
||||
|
||||
public boolean onChat(Player player, String message){
|
||||
|
||||
//Quote (Greentext)
|
||||
|
Reference in New Issue
Block a user