Adjusting name
Adjusting name and added it to the config
This commit is contained in:
@@ -274,6 +274,7 @@ server:
|
|||||||
#Announcement Configuration
|
#Announcement Configuration
|
||||||
USE_ANNOUNCE_SHOPITEMSOLD: false #Automatic message sent to owner when an item from the Player Shop or Hired Merchant is sold.
|
USE_ANNOUNCE_SHOPITEMSOLD: false #Automatic message sent to owner when an item from the Player Shop or Hired Merchant is sold.
|
||||||
USE_ANNOUNCE_CHANGEJOB: false #Automatic message sent to acquantainces when changing jobs.
|
USE_ANNOUNCE_CHANGEJOB: false #Automatic message sent to acquantainces when changing jobs.
|
||||||
|
USE_ANNOUNCE_NX_COUPON_LOOT: false #Enables or disables the floating text when a player loots a NX card
|
||||||
|
|
||||||
#Cash Shop Configuration
|
#Cash Shop Configuration
|
||||||
USE_JOINT_CASHSHOP_INVENTORY: false #Enables usage of a same cash shop inventory for explorers, cygnus and legends. Items from exclusive cash shop inventories won't show up on the shared inventory, though.
|
USE_JOINT_CASHSHOP_INVENTORY: false #Enables usage of a same cash shop inventory for explorers, cygnus and legends. Items from exclusive cash shop inventories won't show up on the shared inventory, though.
|
||||||
|
|||||||
@@ -1966,7 +1966,7 @@ public class Character extends AbstractCharacterObject {
|
|||||||
int nxGain = mapitem.getItemId() == ItemId.NX_CARD_100 ? 100 : 250;
|
int nxGain = mapitem.getItemId() == ItemId.NX_CARD_100 ? 100 : 250;
|
||||||
this.getCashShop().gainCash(1, nxGain);
|
this.getCashShop().gainCash(1, nxGain);
|
||||||
|
|
||||||
if (YamlConfig.config.server.USE_NX_COUPON_LOOT_NOTICE) {
|
if (YamlConfig.config.server.USE_ANNOUNCE_NX_COUPON_LOOT) {
|
||||||
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2018,7 +2018,7 @@ public class Character extends AbstractCharacterObject {
|
|||||||
int nxGain = mapitem.getItemId() == ItemId.NX_CARD_100 ? 100 : 250;
|
int nxGain = mapitem.getItemId() == ItemId.NX_CARD_100 ? 100 : 250;
|
||||||
this.getCashShop().gainCash(1, nxGain);
|
this.getCashShop().gainCash(1, nxGain);
|
||||||
|
|
||||||
if (YamlConfig.config.server.USE_NX_COUPON_LOOT_NOTICE) {
|
if (YamlConfig.config.server.USE_ANNOUNCE_NX_COUPON_LOOT) {
|
||||||
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
||||||
}
|
}
|
||||||
} else if (applyConsumeOnPickup(mItem.getItemId())) {
|
} else if (applyConsumeOnPickup(mItem.getItemId())) {
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ public class ServerConfig {
|
|||||||
//Announcement Configuration
|
//Announcement Configuration
|
||||||
public boolean USE_ANNOUNCE_SHOPITEMSOLD;
|
public boolean USE_ANNOUNCE_SHOPITEMSOLD;
|
||||||
public boolean USE_ANNOUNCE_CHANGEJOB;
|
public boolean USE_ANNOUNCE_CHANGEJOB;
|
||||||
public boolean USE_NX_COUPON_LOOT_NOTICE;
|
public boolean USE_ANNOUNCE_NX_COUPON_LOOT;
|
||||||
|
|
||||||
//Cash Shop Configuration
|
//Cash Shop Configuration
|
||||||
public boolean USE_JOINT_CASHSHOP_INVENTORY;
|
public boolean USE_JOINT_CASHSHOP_INVENTORY;
|
||||||
|
|||||||
Reference in New Issue
Block a user