java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.settings.impl.Permissions
All Implemented Interfaces:
Setting

public class Permissions extends Object implements Setting
  • Constructor Details

    • Permissions

      public Permissions(String modelID)
      Constructs the default permissions for a vehicle.
      Parameters:
      modelID - The ID of the VehicleModel.
    • Permissions

      public Permissions(String buy, String adjust, String spawn, String ride, boolean sitWithoutRidePermission)
      Creates a new Permissions instance.
      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

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Permissions.PermissionsBuilder builder()
    • getBuy

      public String getBuy()
      The permission to buy this vehicle.
    • getAdjust

      public String getAdjust()
      The permission to adjust this vehicle. (Upgrade, Change owner, Change name, ...)
    • getSpawn

      public String getSpawn()
      The permission to spawn/despawn this vehicle.
    • getRide

      public String 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

      public void setBuy(String buy)
      The permission to buy this vehicle.
    • setAdjust

      public void setAdjust(String adjust)
      The permission to adjust this vehicle. (Upgrade, Change owner, Change name, ...)
    • setSpawn

      public void setSpawn(String spawn)
      The permission to spawn/despawn this vehicle.
    • setRide

      public void setRide(String ride)
      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?