There are GMs with no access to item creation.
This commit is contained in:
		| @@ -134,7 +134,7 @@ public class BoatData implements IXmlReader | ||||
| 				} | ||||
| 				else if ("path".equalsIgnoreCase(node.getNodeName())) | ||||
| 				{ | ||||
| 					final List<BoatPoint> pathList = new ArrayList<>(); | ||||
| 					final List<BoatPoint> points = new ArrayList<>(); | ||||
| 					for (Node b = node.getFirstChild(); b != null; b = b.getNextSibling()) | ||||
| 					{ | ||||
| 						if (!"point".equalsIgnoreCase(b.getNodeName())) | ||||
| @@ -157,9 +157,9 @@ public class BoatData implements IXmlReader | ||||
| 						point.z = set.getInt("z"); | ||||
| 						point.time = set.getInt("time"); | ||||
| 						 | ||||
| 						pathList.add(point); | ||||
| 						points.add(point); | ||||
| 					} | ||||
| 					paths.put(Integer.parseInt(node.getAttributes().getNamedItem("id").getNodeValue()), pathList); | ||||
| 					paths.put(Integer.parseInt(node.getAttributes().getNamedItem("id").getNodeValue()), points); | ||||
| 				} | ||||
| 			} | ||||
| 			 | ||||
|   | ||||
| @@ -3640,20 +3640,12 @@ public class PlayerInstance extends Playable | ||||
| 	 */ | ||||
| 	public boolean reduceAdena(String process, int count, WorldObject reference, boolean sendMessage) | ||||
| 	{ | ||||
| 		// Game master don't need to pay | ||||
| 		if (isGM()) | ||||
| 		{ | ||||
| 			sendMessage("You are a Gm, you don't need to pay! reduceAdena = 0."); | ||||
| 			return true; | ||||
| 		} | ||||
| 		if (count > getAdena()) | ||||
| 		{ | ||||
| 			 | ||||
| 			if (sendMessage) | ||||
| 			{ | ||||
| 				sendPacket(SystemMessageId.YOU_NOT_ENOUGH_ADENA); | ||||
| 			} | ||||
| 			 | ||||
| 			return false; | ||||
| 		} | ||||
| 		 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment