Class VehicleEdit
java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVSubCommand
nl.mtvehicles.core.commands.vehiclesubs.VehicleEdit
/vehicle edit - edit held vehicle's specifications (in a GUI).
-
Field Summary
Fields inherited from class nl.mtvehicles.core.infrastructure.models.MTVSubCommand
arguments, isPlayer, player, sender
-
Constructor Summary
-
Method Summary
Methods inherited from class nl.mtvehicles.core.infrastructure.models.MTVSubCommand
checkPermission, getVehicle, isHoldingVehicle, isPlayerCommand, onExecute, sendMessage, sendMessage, setPlayerCommand
-
Constructor Details
-
VehicleEdit
public VehicleEdit()
-
-
Method Details
-
execute
public boolean execute()Description copied from class:MTVSubCommand
Code executed by a subcommand- Specified by:
execute
in classMTVSubCommand
- Returns:
- True if successful
-
editMenu
public static void editMenu(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack item)Open /vehicle edit GUI menu to a player- Parameters:
p
- Playeritem
- Vehicle item
-