mirror of
https://e.coding.net/circlecloud/RocketJump.git
synced 2024-12-27 20:48:50 +00:00
rebuild priject...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
976b85b1e4
commit
1cd844735e
@ -13,13 +13,9 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||
*/
|
||||
public class RocketJump extends JavaPlugin {
|
||||
|
||||
List<String> Dante = new ArrayList<String>() ;
|
||||
|
||||
public void onEnable() {
|
||||
getServer().getPluginManager().registerEvents(new Listen(this), this);
|
||||
getLogger().info("§aRocketJump已加载...");
|
||||
}
|
||||
List<String> Dante = new ArrayList<String>() ;
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command cmd, String string,
|
||||
String[] args) {
|
||||
Player p = (Player) sender;
|
||||
@ -33,17 +29,25 @@ public class RocketJump extends JavaPlugin {
|
||||
if (args[0].equalsIgnoreCase("off")) {
|
||||
this.Dante.remove(p.getName());
|
||||
sender.sendMessage("§6[RocketJump]§4已关闭...");
|
||||
if (p.getGameMode() == GameMode.SURVIVAL)
|
||||
if (p.getGameMode() == GameMode.SURVIVAL) {
|
||||
p.setAllowFlight(false);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
getLogger().info( "§4RocketJump已卸载...");
|
||||
}
|
||||
getLogger().info( "§4RocketJump已卸载...");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
getServer().getPluginManager().registerEvents(new Listen(this), this);
|
||||
getLogger().info("§aRocketJump已加载...");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user