/region flag id name subname some string with spacaes

valueStr now contains 'some string with spaces'

this does only work for flags with a subname
This commit is contained in:
Redecouverte 2011-02-26 11:57:15 +01:00
parent a473f47235
commit d02c5057c6

View File

@ -51,7 +51,12 @@ public boolean handle(CommandSender sender, String senderName, String command, S
valueStr = args[2]; valueStr = args[2];
} else { } else {
subnameStr = args[2]; subnameStr = args[2];
valueStr = args[3]; StringBuilder tmp = new StringBuilder();
for(int i=3; i < args.length; i++)
{
tmp.append(args[i]);
}
valueStr = tmp.toString();
} }
RegionManager mgr = cfg.getWorldGuardPlugin().getGlobalRegionManager().getRegionManager(wcfg.getWorldName()); RegionManager mgr = cfg.getWorldGuardPlugin().getGlobalRegionManager().getRegionManager(wcfg.getWorldName());