Should hopefully be [v0.6.0]
Fixed cancellation of Portal events in Stargates
This commit is contained in:
		
							
								
								
									
										66
									
								
								README
									
									
									
									
									
								
							
							
						
						
									
										66
									
								
								README
									
									
									
									
									
								
							| @@ -1,36 +1,45 @@ | |||||||
| ============= | ============= | ||||||
|  Description |  Description | ||||||
| ============= | ============= | ||||||
| This is a port of the Stargate plugin from hMod. | This is a port of the Stargate plugin from hMod by Dinnerbone. | ||||||
| Create gates that allow for instant-teleportation between large distances. Gates can be always-open, or triggered, they can be hidden, or accessible to everybody, they can share a network, or they can be split into clusters. | Create gates that allow for instant-teleportation between large distances. Gates can be always-open, or triggered, they can be hidden, or accessible to everybody, they can share a network, or they can be split into clusters. | ||||||
| This port will import your existing locations.dat file from the hMod Stargate plugin! | This port will import your existing locations.dat file from the hMod Stargate plugin! | ||||||
| iConomy support added back in, only costs are create, destroy and use. | iConomy support added back in, only costs are create, destroy and use. | ||||||
|  |  | ||||||
| ============= |  | ||||||
| Known Issues |  | ||||||
| ============= |  | ||||||
| Hmm.. None? |  | ||||||
|  |  | ||||||
| ============= | ============= | ||||||
|  Permissions |  Permissions | ||||||
| ============= | ============= | ||||||
|  - stargate.use - Allow this player/group to use stargates. | stargate.use -- Allow use of all gates linking to any world in any network | ||||||
|  - stargate.create - Allow this player/group to create new stargates. |   stargate.world -- Allow use of gates linking to any world | ||||||
|  - stargate.create.personal - Allow this player/group to create new stargates on a network defined as their name. |     stargate.world.{world} -- Allow use of gates with a destination in {world} | ||||||
|  - stargate.destroy.all - Allow this player/group to destroy any existing stargate (Replaces stargate.destroy) |   stargate.network -- Allow use of gates on all networks | ||||||
|  - stargate.destroy.owner - Allow this player/group to destroy any stargate that they are the owner of. |     stargate.network.{network} -- Allow use of all gates in {network} | ||||||
|  - stargate.hidden - Allow this player/group to see all hidden stargates. |  | ||||||
|  - stargate.private - Allow this player/group to use all private stargates. | stargate.option -- Allow use of all options | ||||||
|  - stargate.free.use - This player/group is not charged to use gates even if the gate has a cost. |   stargate.option.hidden -- Allow use of 'H'idden | ||||||
|  - stargate.free.create - This player/group is not charged to create gates even if the gate has a cost. |   stargate.option.alwayson -- Allow use of 'A'lways-On | ||||||
|  - stargate.free.destroy - This player/group is not charged to destroy gates even if the gate has a cost. |   stargate.option.private -- Allow use of 'P'rivate | ||||||
|  - stargate.world.{worldname} - Allow this user/group access to gates on the world {worldname} |   stargate.option.free -- Allow use of 'F'ree | ||||||
|  - stargate.network.{networkname} - Allow this user/group access to the network {networkname} |   stargate.option.backwards -- Allow use of 'B'ackwards | ||||||
|  - stargate.option.hidden - Allow this user/group to create hidden gates. |    | ||||||
|  - stargate.option.alwayson - Allow this user/group to create always-on gates. | stargate.create -- Allow creating gates on any network | ||||||
|  - stargate.option.private - Allow this user/group to create private gates. |   stargate.create.personal -- Allow creating gates on network {playername} | ||||||
|  - stargate.option.free - Allow this user/group to create free gates. |   stargate.create.network -- Allow creating gates on any network | ||||||
|  - stargate.option.backwards - Allow this user/group to create backwards gates. |     stargate.create.network.{networkname} -- Allow creating gates on network {networkname} | ||||||
|  |  | ||||||
|  | stargate.destroy -- Allow destruction gates on any network | ||||||
|  |   stargate.destroy.personal -- Allow destruction of gates owned by user only | ||||||
|  |   stargate.destroy.network -- Allow destruction of gates on any network | ||||||
|  |     stargate.destroy.network.{networkname} -- Allow destruction of gates on network {networkname} | ||||||
|  |  | ||||||
|  | stargate.free -- Allow free use/creation/destruction of gates | ||||||
|  |   stargate.free.use -- Allow free use of Stargates | ||||||
|  |   stargate.free.create -- Allow free creation of Stargates | ||||||
|  |   stargate.free.destroy -- Allow free destruction of Stargates | ||||||
|  |    | ||||||
|  | stargate.admin -- Allow all admin features (Hidden/Private only so far) | ||||||
|  |   stargate.admin.private -- Allow use of Private gates not owned by user | ||||||
|  |   stargate.admin.hidden -- Allow access to Hidden gates not ownerd by user | ||||||
|  |  | ||||||
| ============= | ============= | ||||||
| Instructions | Instructions | ||||||
| @@ -130,17 +139,18 @@ usecost - The cost to use a stargate | |||||||
| chargefreedestination - Enable to allow free travel from any gate to a free gate | chargefreedestination - Enable to allow free travel from any gate to a free gate | ||||||
| freegatesgreen - Enable to make gates that won't cost the player money show up as green | freegatesgreen - Enable to make gates that won't cost the player money show up as green | ||||||
| not-enough-money-message - The message displayed if a player lacks money to do something | not-enough-money-message - The message displayed if a player lacks money to do something | ||||||
| networkfilter - Whether or not to disallow users access to a network if they don't have the 'stargate.network.{networkname}' permission. |  | ||||||
| worldfilter - Whether or not to disallow users access to a network if they don't have the 'stargate.world.{worldname}' permission. |  | ||||||
| toowner - Whether the money from gate-use goes to the owner or nobody | toowner - Whether the money from gate-use goes to the owner or nobody | ||||||
| debug - Whether to show massive debug output for gate creation | debug - Whether to show massive debug output | ||||||
| maxgates - If non-zero, will define the maximum amount of gates allowed on a network. | maxgates - If non-zero, will define the maximum amount of gates allowed on any network. | ||||||
|  |  | ||||||
| ============= | ============= | ||||||
|   Changes |   Changes | ||||||
| ============= | ============= | ||||||
| [Version 0.6.0] | [Version 0.6.0] | ||||||
|  - Oh god the changes, hopefully I didn't fuck anything up, README updates coming later |  - Completely re-wrote Permission handling (REREAD/REDO YOUR PERMISSIONS!!!!!!!!) | ||||||
|  |  - Added custom Stargate events (See Stargate-DHD code for use) | ||||||
|  |  - Fixed portal event cancellation | ||||||
|  |  - Umm... Lots of other small things. | ||||||
| [Version 0.5.5] | [Version 0.5.5] | ||||||
|  - Added 'B'ackwards option |  - Added 'B'ackwards option | ||||||
|  - Fixed opening of gates with a fixed gate as a destination |  - Fixed opening of gates with a fixed gate as a destination | ||||||
|   | |||||||
| @@ -567,10 +567,12 @@ public class Stargate extends JavaPlugin { | |||||||
| 			int cX = from.getBlockX(); | 			int cX = from.getBlockX(); | ||||||
| 			int cY = from.getBlockY(); | 			int cY = from.getBlockY(); | ||||||
| 			int cZ = from.getBlockZ(); | 			int cZ = from.getBlockZ(); | ||||||
| 			for (int i = 0; i < 3; i++) { | 			for (int i = -2; i < 2; i++) { | ||||||
| 				for (int j = 0; j < 3; j++) { | 				for (int j = -2; j < 2; j++) { | ||||||
| 					for (int k = 0; k < 3; k++) { | 					for (int k = -2; k < 2; k++) { | ||||||
| 						Block b = world.getBlockAt(cX + i, cY + j, cZ + k); | 						Block b = world.getBlockAt(cX + i, cY + j, cZ + k); | ||||||
|  | 						// We only need to worry about portal mat | ||||||
|  | 						if (b.getType() != Material.PORTAL) continue; | ||||||
| 						Portal portal = Portal.getByEntrance(b); | 						Portal portal = Portal.getByEntrance(b); | ||||||
| 						if (portal != null) { | 						if (portal != null) { | ||||||
| 							event.setCancelled(true); | 							event.setCancelled(true); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Steven Scott
					Steven Scott