Placed "ticktime" command back in. Fixed double length days and nights.

Separate tick time from game tick. Added temporary Chainmail values to
EnchantLevelDatabase until real values are added.
anvil_rework
sigonasr2 11 years ago
parent aac036a559
commit ea3b087fe6
  1. 4
      BankEconomyMod/src/me/kaZep/Base/EnchantLevelDatabase.java
  2. 2
      BankEconomyMod/src/me/kaZep/Base/Main.java
  3. 6
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java
  4. 4
      BankEconomyMod/src/me/kaZep/Commands/commandBankEconomy.java

@ -40,6 +40,10 @@ public class EnchantLevelDatabase {
public List<StoreValues> iron_sword = new ArrayList<StoreValues>();
public List<StoreValues> gold_sword = new ArrayList<StoreValues>();
public List<StoreValues> diamond_sword = new ArrayList<StoreValues>();
public List<StoreValues> chain_helmet = new ArrayList<StoreValues>();;
public List<StoreValues> chain_chestplate = new ArrayList<StoreValues>();;
public List<StoreValues> chain_leggings = new ArrayList<StoreValues>();;
public List<StoreValues> chain_boots = new ArrayList<StoreValues>();;
public EnchantLevelDatabase() {
stone_hoe.add(new StoreValues(0.359,Enchantment.DURABILITY,1,5));
stone_shovel.add(new StoreValues(0.636,Enchantment.DIG_SPEED,1,5));

@ -3456,7 +3456,7 @@ public void updateTime() {
}
}
}
Bukkit.getWorld("world").setFullTime(Main.SERVER_TICK_TIME-4);
Bukkit.getWorld("world").setFullTime(Bukkit.getWorld("world").getFullTime()-4);
}
}
, 8, 8);

@ -1240,16 +1240,16 @@ public class PlayerListener
}
}
/*
@EventHandler
public void onPlayerWakeup(PlayerBedLeaveEvent e) {
Player p = e.getPlayer();
//p.sendMessage("Wakeup at "+Bukkit.getWorld("world").getTime());
if (Bukkit.getWorld("world").getTime()==0) {
this.plugin.last_world_time=0;
Bukkit.getWorld("world").setTime90
}
return;
}
}*/
@EventHandler
public void onPlayerSneak(PlayerToggleSneakEvent e) {

@ -428,6 +428,10 @@ public String convertToItemName(String val) {
p.sendMessage("Enchantments removed on this item.");
}
else
if (cmd.getName().equalsIgnoreCase("ticktime")) {
p.sendMessage("Current Server Time: "+ChatColor.GRAY+""+ChatColor.ITALIC+Main.SERVER_TICK_TIME);
}
else
if (cmd.getName().equalsIgnoreCase("jobs")) {
FileConfiguration config = this.plugin.getConfig();
int MAXJOBS = config.getInt("jobs.MAX_JOBS");

Loading…
Cancel
Save