forked from angelsl/jxpl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add own versions of Authorize & BackupPlugin
- Loading branch information
angelsl
committed
Feb 6, 2011
1 parent
336895d
commit 8ca2dbd
Showing
22 changed files
with
3,480 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
*.ipr | ||
*.iws | ||
*.jar | ||
/out | ||
/Bukkit/ | ||
/CraftBukkit/ | ||
/mc-dev/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="jdk" jdkName="1.6" jdkType="JavaSDK" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="module" module-name="bukkit" /> | ||
</component> | ||
</module> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Manifest-Version: 1.0 | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
Authorize/com/rena4ka/bukkit/auth/AuthorizeBlockListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* */ | ||
package com.rena4ka.bukkit.auth; | ||
/* */ | ||
/* */ | ||
|
||
import org.bukkit.event.block.BlockDamageEvent; | ||
import org.bukkit.event.block.BlockListener; | ||
import org.bukkit.event.block.BlockPlaceEvent; | ||
|
||
/* */ | ||
/* */ | ||
/* */ | ||
|
||
/* */ | ||
/* */ public class AuthorizeBlockListener extends BlockListener | ||
/* */ { | ||
/* */ private final Authorize plugin; | ||
|
||
/* */ | ||
/* */ | ||
public AuthorizeBlockListener(Authorize instance) | ||
/* */ { | ||
/* 17 */ | ||
this.plugin = instance; | ||
/* */ | ||
} | ||
|
||
/* */ | ||
/* */ | ||
public void onBlockPlace(BlockPlaceEvent event) { | ||
/* 21 */ | ||
if (!this.plugin.isAuthorized(event.getPlayer().getEntityId())) | ||
/* 22 */ event.setCancelled(true); | ||
/* */ | ||
} | ||
|
||
/* */ | ||
/* */ | ||
public void onBlockDamage(BlockDamageEvent event) { | ||
/* 26 */ | ||
if (!this.plugin.isAuthorized(event.getPlayer().getEntityId())) | ||
/* 27 */ event.setCancelled(true); | ||
/* */ | ||
} | ||
/* */ | ||
} | ||
|
||
/* Location: D:\Misc\Games\Minecraft\Beta\Development\Server Bukkit\Authorize.jar | ||
* Qualified Name: com.rena4ka.bukkit.auth.AuthorizeBlockListener | ||
* JD-Core Version: 0.6.0 | ||
*/ |
43 changes: 43 additions & 0 deletions
43
Authorize/com/rena4ka/bukkit/auth/AuthorizeEntityListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* */ | ||
package com.rena4ka.bukkit.auth; | ||
/* */ | ||
/* */ | ||
|
||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.entity.EntityDamageEvent; | ||
import org.bukkit.event.entity.EntityListener; | ||
|
||
/* */ | ||
/* */ | ||
/* */ | ||
|
||
/* */ | ||
/* */ public class AuthorizeEntityListener extends EntityListener | ||
/* */ { | ||
/* */ private final Authorize plugin; | ||
|
||
/* */ | ||
/* */ | ||
public AuthorizeEntityListener(Authorize instance) | ||
/* */ { | ||
/* 18 */ | ||
this.plugin = instance; | ||
/* */ | ||
} | ||
|
||
/* */ | ||
/* */ | ||
public void onEntityDamage(EntityDamageEvent event) { | ||
/* 22 */ | ||
if (((event.getEntity() instanceof Player)) && | ||
/* 23 */ (!this.plugin.isAuthorized(event.getEntity().getEntityId()))) | ||
/* 24 */ event.setCancelled(true); | ||
/* */ | ||
} | ||
/* */ | ||
} | ||
|
||
/* Location: D:\Misc\Games\Minecraft\Beta\Development\Server Bukkit\Authorize.jar | ||
* Qualified Name: com.rena4ka.bukkit.auth.AuthorizeEntityListener | ||
* JD-Core Version: 0.6.0 | ||
*/ |
Oops, something went wrong.