mirror of
https://github.com/kami-blue/client
synced 2025-02-20 23:27:14 +00:00
Removed Vanish command
This commit is contained in:
parent
397068119a
commit
96099df463
@ -1,40 +0,0 @@
|
||||
package me.zeroeightsix.kami.command.commands;
|
||||
|
||||
import me.zeroeightsix.kami.command.Command;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
import static me.zeroeightsix.kami.util.MessageSendHelper.sendChatMessage;
|
||||
|
||||
/**
|
||||
* Created by d1gress/Qther on 25/11/2017.
|
||||
*/
|
||||
|
||||
public class VanishCommand extends Command {
|
||||
|
||||
private static Entity vehicle;
|
||||
|
||||
public VanishCommand() {
|
||||
super("vanish", null);
|
||||
setDescription("Allows you to vanish using an entity");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void call(String[] args) {
|
||||
if (mc.player.getRidingEntity() != null && vehicle == null) {
|
||||
vehicle = mc.player.getRidingEntity();
|
||||
mc.player.dismountRidingEntity();
|
||||
mc.world.removeEntityFromWorld(vehicle.getEntityId());
|
||||
sendChatMessage("Vehicle " + vehicle.getName() + " removed.");
|
||||
} else {
|
||||
if (vehicle != null) {
|
||||
vehicle.isDead = false;
|
||||
mc.world.addEntityToWorld(vehicle.getEntityId(), vehicle);
|
||||
mc.player.startRiding(vehicle, true);
|
||||
sendChatMessage("Vehicle " + vehicle.getName() + " created.");
|
||||
vehicle = null;
|
||||
} else {
|
||||
sendChatMessage("No Vehicle.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user