Class VehicleBuy
java.lang.Object
nl.mtvehicles.core.infrastructure.models.MTVSubCommand
nl.mtvehicles.core.commands.vehiclesubs.VehicleBuy
/vehicle buy %vehicleName% [--voucher:true] - buy yourself a vehicle / a voucher.
Permission: mtvehicles.buycar / mtvehicles.buyvoucher
Permission: mtvehicles.buycar / mtvehicles.buyvoucher
- Since:
- 2.5.7
-
Field Summary
Fields inherited from class nl.mtvehicles.core.infrastructure.models.MTVSubCommand
arguments, isPlayer, player, sender
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class nl.mtvehicles.core.infrastructure.models.MTVSubCommand
checkPermission, getVehicle, isHoldingVehicle, isPlayerCommand, onExecute, sendMessage, sendMessage, setPlayerCommand
-
Constructor Details
-
VehicleBuy
public VehicleBuy()
-
-
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
-