mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Added support for spaces in Player Disguises.
Use the "\_" (backslash underscore) to place a space in a name. Example: /d player The\_Great\_Apple
This commit is contained in:
parent
8c633adb8e
commit
bdb436711f
@ -13,7 +13,7 @@ println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion
|
|||||||
sourceCompatibility = '1.7'
|
sourceCompatibility = '1.7'
|
||||||
ext.spigotVersion = '1.8.7-R0.1-SNAPSHOT'
|
ext.spigotVersion = '1.8.7-R0.1-SNAPSHOT'
|
||||||
|
|
||||||
ext.disguisesVersion = '8.6.1'
|
ext.disguisesVersion = '8.6.2'
|
||||||
|
|
||||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||||
|
|
||||||
|
@ -369,6 +369,7 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
|
|||||||
.get(args[1].toLowerCase()))) {
|
.get(args[1].toLowerCase()))) {
|
||||||
throw new DisguiseParseException(ChatColor.RED + "Error! You don't have permission to use that name!");
|
throw new DisguiseParseException(ChatColor.RED + "Error! You don't have permission to use that name!");
|
||||||
}
|
}
|
||||||
|
args[1] = args[1].replace("\\_", " ");
|
||||||
// Construct the player disguise
|
// Construct the player disguise
|
||||||
disguise = new PlayerDisguise(ChatColor.translateAlternateColorCodes('&', args[1]));
|
disguise = new PlayerDisguise(ChatColor.translateAlternateColorCodes('&', args[1]));
|
||||||
toSkip++;
|
toSkip++;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: LibsDisguises
|
name: LibsDisguises
|
||||||
main: me.libraryaddict.disguise.LibsDisguises
|
main: me.libraryaddict.disguise.LibsDisguises
|
||||||
version: 8.6.1
|
version: 8.6.2
|
||||||
author: libraryaddict
|
author: libraryaddict
|
||||||
authors: [Byteflux, Navid K.]
|
authors: [Byteflux, Navid K.]
|
||||||
depend: [ProtocolLib]
|
depend: [ProtocolLib]
|
||||||
|
Loading…
Reference in New Issue
Block a user