mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-02-18 21:32:03 +01:00
Update JeffChestSortPlugin.java
This commit is contained in:
parent
5d5922dde3
commit
b88186e0a5
@ -197,13 +197,13 @@ public class JeffChestSortPlugin extends JavaPlugin {
|
|||||||
public boolean sortingEnabled(Player p) {
|
public boolean sortingEnabled(Player p) {
|
||||||
|
|
||||||
// The following is for all the lazy server admins who use /reload instead of properly restarting their
|
// The following is for all the lazy server admins who use /reload instead of properly restarting their
|
||||||
// server. I am constantly getting stacktraces although it is clearly stated that /reload is NOT
|
// server ;) I am sometimes getting stacktraces although it is clearly stated that /reload is NOT
|
||||||
// supported. But I am tired of explaining that to everyone, so here is a quick but actually useless fix
|
// supported. So, here is a quick fix
|
||||||
if(PerPlayerSettings == null) {
|
if(PerPlayerSettings == null) {
|
||||||
PerPlayerSettings = new HashMap<String, JeffChestSortPlayerSetting>();
|
PerPlayerSettings = new HashMap<String, JeffChestSortPlayerSetting>();
|
||||||
}
|
}
|
||||||
listener.registerPlayerIfNeeded(p);
|
listener.registerPlayerIfNeeded(p);
|
||||||
// End of quick but actually useless fix
|
// End of quick fix
|
||||||
|
|
||||||
return PerPlayerSettings.get(p.getUniqueId().toString()).sortingEnabled;
|
return PerPlayerSettings.get(p.getUniqueId().toString()).sortingEnabled;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user