public class PluginSettings
extends java.lang.Object
Constructor and Description |
---|
PluginSettings() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getDriveOverBlocks()
Can vehicles drive over full blocks
|
java.lang.Boolean |
getDriveOverSlabs()
Can vehicles drive over slabs
|
java.lang.Boolean |
getEntityCollisionDamageEntity()
Do entities get damage when hit by a vehicle
|
java.lang.Boolean |
getEntityCollisionDamageSelf()
Do vehicles get damage from hitting entities
|
java.lang.Boolean |
getEntityCollisionStop()
Do vehicles stop when they hit an entity
|
java.lang.String |
getLocale()
The locale of the plugin
|
java.lang.Boolean |
getOnlySpawnOnSpawnpoints()
Do entities get damage when hit by a vehicle
|
java.lang.Double |
getOwnerChangeCost()
Rename cost
|
java.lang.Double |
getRenameCost()
Rename cost
|
java.lang.Double |
getRepairCostDivision()
Repair cost division
|
java.lang.Boolean |
getShowActionBar()
Show action bar while in vehicles
|
java.lang.Boolean |
getVehicleDamage()
Can vehicles get damage
|
void |
initiate()
Initiate the config on first run
|
void |
load()
Load the settings
|
void |
setDriveOverBlocks(java.lang.Boolean driveOverBlocks)
Can vehicles drive over full blocks
|
void |
setDriveOverSlabs(java.lang.Boolean driveOverSlabs)
Can vehicles drive over slabs
|
void |
setEntityCollisionDamageEntity(java.lang.Boolean entityCollisionDamageEntity)
Do entities get damage when hit by a vehicle
|
void |
setEntityCollisionDamageSelf(java.lang.Boolean entityCollisionDamageSelf)
Do vehicles get damage from hitting entities
|
void |
setEntityCollisionStop(java.lang.Boolean entityCollisionStop)
Do vehicles stop when they hit an entity
|
void |
setLocale(java.lang.String locale)
The locale of the plugin
|
void |
setOnlySpawnOnSpawnpoints(java.lang.Boolean onlySpawnOnSpawnpoints)
Do entities get damage when hit by a vehicle
|
void |
setOwnerChangeCost(java.lang.Double ownerChangeCost)
Rename cost
|
void |
setRenameCost(java.lang.Double renameCost)
Rename cost
|
void |
setRepairCostDivision(java.lang.Double repairCostDivision)
Repair cost division
|
void |
setShowActionBar(java.lang.Boolean showActionBar)
Show action bar while in vehicles
|
void |
setVehicleDamage(java.lang.Boolean vehicleDamage)
Can vehicles get damage
|
void |
update()
Update config files
|
void |
updateLocale()
Update the locale files
|
public void load()
public void initiate()
public void updateLocale()
public void update()
public java.lang.String getLocale()
public java.lang.Boolean getDriveOverSlabs()
public java.lang.Boolean getDriveOverBlocks()
public java.lang.Double getRepairCostDivision()
If a vehicles price is 100000 and the division is 100, the vehicle repair cost will be 100000 / 100 = 1000
public java.lang.Double getRenameCost()
public java.lang.Double getOwnerChangeCost()
public java.lang.Boolean getVehicleDamage()
public java.lang.Boolean getEntityCollisionStop()
public java.lang.Boolean getEntityCollisionDamageSelf()
public java.lang.Boolean getEntityCollisionDamageEntity()
public java.lang.Boolean getOnlySpawnOnSpawnpoints()
public java.lang.Boolean getShowActionBar()
public void setLocale(java.lang.String locale)
public void setDriveOverSlabs(java.lang.Boolean driveOverSlabs)
public void setDriveOverBlocks(java.lang.Boolean driveOverBlocks)
public void setRepairCostDivision(java.lang.Double repairCostDivision)
If a vehicles price is 100000 and the division is 100, the vehicle repair cost will be 100000 / 100 = 1000
public void setRenameCost(java.lang.Double renameCost)
public void setOwnerChangeCost(java.lang.Double ownerChangeCost)
public void setVehicleDamage(java.lang.Boolean vehicleDamage)
public void setEntityCollisionStop(java.lang.Boolean entityCollisionStop)
public void setEntityCollisionDamageSelf(java.lang.Boolean entityCollisionDamageSelf)
public void setEntityCollisionDamageEntity(java.lang.Boolean entityCollisionDamageEntity)
public void setOnlySpawnOnSpawnpoints(java.lang.Boolean onlySpawnOnSpawnpoints)
public void setShowActionBar(java.lang.Boolean showActionBar)