Class Permissions
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.settings.impl.Permissions
- All Implemented Interfaces:
Setting
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPermissions(String modelID) Constructs the default permissions for a vehicle.Permissions(String buy, String adjust, String spawn, String ride, boolean sitWithoutRidePermission) Creates a newPermissionsinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The permission to adjust this vehicle.getBuy()The permission to buy this vehicle.getRide()The permission to ride this vehicle.getSpawn()The permission to spawn/despawn this vehicle.booleanCan a player sit in the vehicle, even if he doesn't have the ride permission?voidThe permission to adjust this vehicle.voidThe permission to buy this vehicle.voidThe permission to ride this vehicle.voidsetSitWithoutRidePermission(boolean sitWithoutRidePermission) Can a player sit in the vehicle, even if he doesn't have the ride permission?voidThe permission to spawn/despawn this vehicle.toString()
-
Constructor Details
-
Permissions
Constructs the default permissions for a vehicle.- Parameters:
modelID- The ID of theVehicleModel.
-
Permissions
public Permissions(String buy, String adjust, String spawn, String ride, boolean sitWithoutRidePermission) Creates a newPermissionsinstance.- Parameters:
buy- The permission to buy this vehicle.adjust- The permission to adjust this vehicle. (Upgrade, Change owner, Change name, ...)spawn- The permission to spawn/despawn this vehicle.ride- The permission to ride this vehicle.sitWithoutRidePermission- Can a player sit in the vehicle, even if he doesn't have the ride permission?
-
-
Method Details
-
toString
-
builder
-
getBuy
The permission to buy this vehicle. -
getAdjust
The permission to adjust this vehicle. (Upgrade, Change owner, Change name, ...) -
getSpawn
The permission to spawn/despawn this vehicle. -
getRide
The permission to ride this vehicle. -
isSitWithoutRidePermission
public boolean isSitWithoutRidePermission()Can a player sit in the vehicle, even if he doesn't have the ride permission? -
setBuy
The permission to buy this vehicle. -
setAdjust
The permission to adjust this vehicle. (Upgrade, Change owner, Change name, ...) -
setSpawn
The permission to spawn/despawn this vehicle. -
setRide
The permission to ride this vehicle. -
setSitWithoutRidePermission
public void setSitWithoutRidePermission(boolean sitWithoutRidePermission) Can a player sit in the vehicle, even if he doesn't have the ride permission?
-