mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
*Okay, so let's actually have it use lowercase unless you are forcing offline mode.
This commit is contained in:
parent
d827d7d230
commit
f0d2fd93dd
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
package com.intellectualcrafters.plot.object;
|
package com.intellectualcrafters.plot.object;
|
||||||
|
|
||||||
|
import com.intellectualcrafters.plot.config.Settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Empire92
|
* @author Empire92
|
||||||
*/
|
*/
|
||||||
@ -54,7 +56,10 @@ public class StringWrapper {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final StringWrapper other = (StringWrapper) obj;
|
final StringWrapper other = (StringWrapper) obj;
|
||||||
return other.value.equals(this.value);
|
if (Settings.OFFLINE_MODE) {
|
||||||
|
return other.value.equals(this.value);
|
||||||
|
}
|
||||||
|
return other.value.toLowerCase().equals(this.value.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -77,6 +82,9 @@ public class StringWrapper {
|
|||||||
if (this.value == null) {
|
if (this.value == null) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return this.value.hashCode();
|
if (Settings.OFFLINE_MODE) {
|
||||||
|
return this.value.hashCode();
|
||||||
|
}
|
||||||
|
return this.value.toLowerCase().hashCode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user