mirror of
https://e.coding.net/circlecloud/RocketJump.git
synced 2024-12-28 20:58:49 +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 {
|
public class RocketJump extends JavaPlugin {
|
||||||
|
|
||||||
List<String> Dante = new ArrayList<String>() ;
|
List<String> Dante = new ArrayList<String>() ;
|
||||||
|
|
||||||
public void onEnable() {
|
|
||||||
getServer().getPluginManager().registerEvents(new Listen(this), this);
|
|
||||||
getLogger().info("§aRocketJump已加载...");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command cmd, String string,
|
public boolean onCommand(CommandSender sender, Command cmd, String string,
|
||||||
String[] args) {
|
String[] args) {
|
||||||
Player p = (Player) sender;
|
Player p = (Player) sender;
|
||||||
@ -33,17 +29,25 @@ public class RocketJump extends JavaPlugin {
|
|||||||
if (args[0].equalsIgnoreCase("off")) {
|
if (args[0].equalsIgnoreCase("off")) {
|
||||||
this.Dante.remove(p.getName());
|
this.Dante.remove(p.getName());
|
||||||
sender.sendMessage("§6[RocketJump]§4已关闭...");
|
sender.sendMessage("§6[RocketJump]§4已关闭...");
|
||||||
if (p.getGameMode() == GameMode.SURVIVAL)
|
if (p.getGameMode() == GameMode.SURVIVAL) {
|
||||||
p.setAllowFlight(false);
|
p.setAllowFlight(false);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onDisable() {
|
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