mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-22 18:32:24 +00:00
parent
2951ef8349
commit
e08b09fe3f
@ -126,9 +126,15 @@ public class Config {
|
|||||||
**/
|
**/
|
||||||
public boolean invert_mouse_buttons;
|
public boolean invert_mouse_buttons;
|
||||||
|
|
||||||
/** Amount the hologram should be lifted **/
|
/** Amount a hologram with two price-lines should be lifted **/
|
||||||
public double two_line_hologram_lift;
|
public double two_line_hologram_lift;
|
||||||
|
|
||||||
|
/** Amount a hologram with one price-line should be lifted **/
|
||||||
|
public double one_line_hologram_lift;
|
||||||
|
|
||||||
|
/** Amount every hologram should be lifted **/
|
||||||
|
public double hologram_lift;
|
||||||
|
|
||||||
/** The maximum distance between a player and a shop to see the hologram **/
|
/** The maximum distance between a player and a shop to see the hologram **/
|
||||||
public double maximal_distance;
|
public double maximal_distance;
|
||||||
|
|
||||||
@ -324,6 +330,8 @@ public class Config {
|
|||||||
remove_shop_on_error = plugin.getConfig().getBoolean("remove-shop-on-error");
|
remove_shop_on_error = plugin.getConfig().getBoolean("remove-shop-on-error");
|
||||||
invert_mouse_buttons = plugin.getConfig().getBoolean("invert-mouse-buttons");
|
invert_mouse_buttons = plugin.getConfig().getBoolean("invert-mouse-buttons");
|
||||||
two_line_hologram_lift = plugin.getConfig().getDouble("two-line-hologram-lift");
|
two_line_hologram_lift = plugin.getConfig().getDouble("two-line-hologram-lift");
|
||||||
|
one_line_hologram_lift = plugin.getConfig().getDouble("one-line-hologram-lift");
|
||||||
|
hologram_lift = plugin.getConfig().getDouble("hologram-lift");
|
||||||
maximal_distance = plugin.getConfig().getDouble("maximal-distance");
|
maximal_distance = plugin.getConfig().getDouble("maximal-distance");
|
||||||
maximal_item_distance = plugin.getConfig().getDouble("maximal-item-distance");
|
maximal_item_distance = plugin.getConfig().getDouble("maximal-item-distance");
|
||||||
shop_creation_price_normal = plugin.getConfig().getDouble("shop-creation-price.normal");
|
shop_creation_price_normal = plugin.getConfig().getDouble("shop-creation-price.normal");
|
||||||
|
@ -190,8 +190,15 @@ public class Shop {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (holoText.length == 3 && holoText[2] != null)
|
holoLocation.add(0, plugin.getShopChestConfig().hologram_lift, 0);
|
||||||
holoLocation.add(0, plugin.getShopChestConfig().two_line_hologram_lift, 0);
|
|
||||||
|
if (plugin.getShopChestConfig().two_line_prices) {
|
||||||
|
if (holoText.length == 3 && holoText[2] != null) {
|
||||||
|
holoLocation.add(0, plugin.getShopChestConfig().two_line_hologram_lift, 0);
|
||||||
|
} else {
|
||||||
|
holoLocation.add(0, plugin.getShopChestConfig().one_line_hologram_lift, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
hologram = new Hologram(plugin, holoText, holoLocation);
|
hologram = new Hologram(plugin, holoText, holoLocation);
|
||||||
}
|
}
|
||||||
|
@ -50,12 +50,21 @@ enable-vendor-messages: true
|
|||||||
# (The messages can be found and modified in the specified language file)
|
# (The messages can be found and modified in the specified language file)
|
||||||
two-line-prices: false
|
two-line-prices: false
|
||||||
|
|
||||||
# Set the amount (may be negative) the hologram should be lifted in the y-axis,
|
# Set the amount (may be negative) a hologram should be lifted in the y-axis,
|
||||||
# when "two-line-prices" is set to true and buying and selling is enabled at the shop.
|
# when "two-line-prices" is set to true and buying and selling is enabled at the shop.
|
||||||
# The higher the number, the higher will the hologram be.
|
# The higher the number, the higher will the hologram be.
|
||||||
# A value of '1' equals to one block, and a value of '0.25' is equal to the height of one line.
|
# A value of '1' equals to one block, and a value of '0.25' is equal to the height of one line.
|
||||||
two-line-hologram-lift: 0.25
|
two-line-hologram-lift: 0.25
|
||||||
|
|
||||||
|
# Set the amount (may be negative) a hologram should be lifted in the y-axis,
|
||||||
|
# when "two-line-prices" is set to true and only buying or selling is enabled at the shop.
|
||||||
|
one-line-hologram-lift: 0
|
||||||
|
|
||||||
|
# Set the amount (may be negative) a hologram should be lifted in the y-axis.
|
||||||
|
# If the hologram lift is already increased by the values above, the holograms will
|
||||||
|
# still be lifted by the here specified amount. This also works with 'two-line-prices' disabled.
|
||||||
|
hologram-lift: 0
|
||||||
|
|
||||||
# Set whether players should be allowed to sell their items, even if the amount they have, is
|
# Set whether players should be allowed to sell their items, even if the amount they have, is
|
||||||
# lower than the amount, the shop owner has set for the given price, or if the inventory of the chest
|
# lower than the amount, the shop owner has set for the given price, or if the inventory of the chest
|
||||||
# doesn't have enough space for all the items, but only for a few, or if the player only has enough money for
|
# doesn't have enough space for all the items, but only for a few, or if the player only has enough money for
|
||||||
|
Loading…
Reference in New Issue
Block a user