mirror of
https://github.com/nkomarn/harbor.git
synced 2024-09-27 22:17:31 +02:00
Update 1.4.3: Hotfix for 1.3.2
This commit is contained in:
parent
5523cdc0ff
commit
d56ef57ebd
@ -60,4 +60,4 @@ messages:
|
||||
permission: "&7Insufficient permissions."
|
||||
|
||||
# Version identifier (do not change)
|
||||
version: 1.4.2
|
||||
version: 1.4.3
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: Harbor
|
||||
version: 1.4.2
|
||||
version: 1.4.3
|
||||
main: techtoolbox.Harbor.Main
|
||||
description: Ahoy, matey! Harbor is a Spigot plugin that redefines how sleep works in your server, making it easier for all the online players to get in bed quick and skip through the night!
|
||||
author: TechToolbox
|
||||
|
@ -67,11 +67,6 @@ public class BedEnterEvent implements Listener {
|
||||
else if (Main.plugin.getConfig().getString("messages.chat.bypass").length() != 0) {
|
||||
event.getPlayer().sendMessage(ChatColor.translateAlternateColorCodes('&', Main.plugin.getConfig().getString("messages.chat.bypass")));
|
||||
}
|
||||
|
||||
// Reset value if below zero (plugin glitch)
|
||||
if ((Main.worlds.get(event.getPlayer().getWorld())).intValue() < 0) {
|
||||
Main.worlds.put(event.getPlayer().getWorld(), Integer.valueOf(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (NoSuchMethodError e){
|
||||
@ -120,12 +115,7 @@ public class BedEnterEvent implements Listener {
|
||||
}
|
||||
else if (Main.plugin.getConfig().getString("messages.chat.bypass").length() != 0) {
|
||||
event.getPlayer().sendMessage(ChatColor.translateAlternateColorCodes('&', Main.plugin.getConfig().getString("messages.chat.bypass")));
|
||||
}
|
||||
|
||||
// Reset value if below zero (plugin glitch)
|
||||
if ((Main.worlds.get(event.getPlayer().getWorld())).intValue() < 0) {
|
||||
Main.worlds.put(event.getPlayer().getWorld(), Integer.valueOf(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,11 +24,6 @@ public class BedLeaveEvent implements Listener {
|
||||
|
||||
if (!event.getPlayer().hasPermission("harbor.bypass")) {
|
||||
Main.worlds.put(event.getPlayer().getWorld(), Integer.valueOf((Main.worlds.get(event.getPlayer().getWorld())).intValue() - 1));
|
||||
}
|
||||
|
||||
// Reset value if below zero (plugin glitch)
|
||||
if ((Main.worlds.get(event.getPlayer().getWorld())).intValue() < 0) {
|
||||
Main.worlds.put(event.getPlayer().getWorld(), Integer.valueOf(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ import techtoolbox.Harbor.Listeners.QuitEvent;
|
||||
|
||||
public class Main extends JavaPlugin implements Listener {
|
||||
public static Main plugin;
|
||||
public static String version = "1.4.2";
|
||||
public static String version = "1.4.3";
|
||||
public static HashMap<World, Integer> worlds = new HashMap<World, Integer>();
|
||||
public static ArrayList<String> bypassers = new ArrayList<String>();
|
||||
public static Actionbar actionbar;
|
||||
|
Loading…
Reference in New Issue
Block a user