mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-09-27 14:13:05 +02:00
Formatting
This commit is contained in:
parent
69e08d0c7d
commit
a781ef51b5
@ -73,6 +73,7 @@ public class Configuration {
|
||||
|
||||
/**
|
||||
* Colourises a string (using '&' character)
|
||||
*
|
||||
* @param string String to colourise
|
||||
* @return Colourised string
|
||||
*/
|
||||
|
@ -11,7 +11,8 @@ public class PriceUtil {
|
||||
|
||||
/**
|
||||
* Gets the price from the text
|
||||
* @param text Text to check
|
||||
*
|
||||
* @param text Text to check
|
||||
* @param indicator Price indicator (for example, B for buy)
|
||||
* @return price
|
||||
*/
|
||||
@ -46,6 +47,7 @@ public class PriceUtil {
|
||||
|
||||
/**
|
||||
* Gets the buy price from te text
|
||||
*
|
||||
* @param text Text to check
|
||||
* @return Buy price
|
||||
*/
|
||||
@ -55,6 +57,7 @@ public class PriceUtil {
|
||||
|
||||
/**
|
||||
* Gets the sell price from te text
|
||||
*
|
||||
* @param text Text to check
|
||||
* @return Sell price
|
||||
*/
|
||||
@ -64,6 +67,7 @@ public class PriceUtil {
|
||||
|
||||
/**
|
||||
* Checks if the string is a valid price
|
||||
*
|
||||
* @param text Text to check
|
||||
* @return Is the string a valid price
|
||||
*/
|
||||
|
@ -16,7 +16,7 @@ public class StringUtil {
|
||||
* @return Reformatted string
|
||||
*/
|
||||
public static String capitalizeFirstLetter(String string, char separator) {
|
||||
char[] separators = new char[] {separator};
|
||||
char[] separators = new char[]{separator};
|
||||
|
||||
return WordUtils.capitalizeFully(string, separators).replace(String.valueOf(separator), " ");
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public class AdminInventory implements Inventory {
|
||||
}
|
||||
|
||||
public ItemStack[] getContents() {
|
||||
return new ItemStack[] {
|
||||
return new ItemStack[]{
|
||||
new ItemStack(Material.CHEST, 1),
|
||||
new ItemStack(Material.AIR, Integer.MAX_VALUE)
|
||||
};
|
||||
|
@ -2,8 +2,8 @@ package com.Acrobot.ChestShop;
|
||||
|
||||
import com.Acrobot.Breeze.Utils.MaterialUtil;
|
||||
import com.Acrobot.ChestShop.Configuration.Properties;
|
||||
import com.Acrobot.ChestShop.Economy.EconomyManager;
|
||||
import com.Acrobot.ChestShop.Economy.Economy;
|
||||
import com.Acrobot.ChestShop.Economy.EconomyManager;
|
||||
import com.Acrobot.ChestShop.Economy.Register;
|
||||
import com.Acrobot.ChestShop.Economy.Vault;
|
||||
import com.Acrobot.ChestShop.Plugins.*;
|
||||
@ -60,7 +60,7 @@ public class Dependencies {
|
||||
|
||||
Listener listener = null;
|
||||
|
||||
switch(dependency) {
|
||||
switch (dependency) {
|
||||
//Protection plugins
|
||||
case LWC:
|
||||
listener = new LightweightChestProtection();
|
||||
|
@ -41,7 +41,7 @@ public class TransactionEvent extends Event {
|
||||
this.sign = sign;
|
||||
}
|
||||
|
||||
public TransactionEvent(TransactionType type, Inventory ownerInventory, Inventory clientInventory, Player client, OfflinePlayer owner, ItemStack[] stock, double price, Sign sign){
|
||||
public TransactionEvent(TransactionType type, Inventory ownerInventory, Inventory clientInventory, Player client, OfflinePlayer owner, ItemStack[] stock, double price, Sign sign) {
|
||||
this.type = type;
|
||||
|
||||
this.ownerInventory = ownerInventory;
|
||||
|
@ -32,7 +32,7 @@ public class PermissionChecker implements Listener {
|
||||
if (transactionType == BUY) {
|
||||
hasPerm = Permission.has(client, Permission.BUY) || Permission.has(client, Permission.BUY_ID + matID);
|
||||
} else {
|
||||
hasPerm = Permission.has(client, Permission.SELL) || Permission.has(client, Permission.SELL_ID + matID);
|
||||
hasPerm = Permission.has(client, Permission.SELL) || Permission.has(client, Permission.SELL_ID + matID);
|
||||
}
|
||||
|
||||
if (!hasPerm) {
|
||||
|
Loading…
Reference in New Issue
Block a user