Browse Source

Version 0.2

Updated to latest event listening method
Removed unused playerlistener class
primary
Devil boy 9 years ago
parent
commit
eb5bca63a0
8 changed files with 7 additions and 9 deletions
  1. BIN
      RedstoneCommandSigns.jar
  2. BIN
      bin/pgDev/bukkit/RedstoneCommandSigns/RCSBlockListener.class
  3. BIN
      bin/pgDev/bukkit/RedstoneCommandSigns/RCSMain.class
  4. BIN
      bin/pgDev/bukkit/RedstoneCommandSigns/RCSPlayerListener.class
  5. +1
    -1
      plugin.yml
  6. +5
    -1
      src/pgDev/bukkit/RedstoneCommandSigns/RCSBlockListener.java
  7. +1
    -2
      src/pgDev/bukkit/RedstoneCommandSigns/RCSMain.java
  8. +0
    -5
      src/pgDev/bukkit/RedstoneCommandSigns/RCSPlayerListener.java

BIN
RedstoneCommandSigns.jar View File


BIN
bin/pgDev/bukkit/RedstoneCommandSigns/RCSBlockListener.class View File


BIN
bin/pgDev/bukkit/RedstoneCommandSigns/RCSMain.class View File


BIN
bin/pgDev/bukkit/RedstoneCommandSigns/RCSPlayerListener.class View File


+ 1
- 1
plugin.yml View File

@@ -1,6 +1,6 @@
name: RedstoneCommandSigns
main: pgDev.bukkit.RedstoneCommandSigns.RCSMain
version: 0.1
version: 0.2
author: PG Dev Team
authors: [Devil Boy]
description: Redstone has taken command!


+ 5
- 1
src/pgDev/bukkit/RedstoneCommandSigns/RCSBlockListener.java View File

@@ -4,15 +4,18 @@ import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.block.*;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.*;
public class RCSBlockListener extends BlockListener {
public class RCSBlockListener implements Listener {
private final RCSMain plugin;
public RCSBlockListener(RCSMain pluginI) {
plugin = pluginI;
}
@EventHandler
public void onBlockRedstoneChange(BlockRedstoneEvent event) {
if (isSign(event.getBlock()) && event.getBlock().isBlockPowered()) {
Sign theSign = (Sign) event.getBlock().getState();
@@ -38,6 +41,7 @@ public class RCSBlockListener extends BlockListener {
plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), commandString);
}
@EventHandler
public void onBlockDamage(BlockDamageEvent event) {
Player player = event.getPlayer();
String name = player.getName();


+ 1
- 2
src/pgDev/bukkit/RedstoneCommandSigns/RCSMain.java View File

@@ -35,8 +35,7 @@ public class RCSMain extends JavaPlugin {
setupPermissions();
PluginManager pm = getServer().getPluginManager();
pm.registerEvent(Event.Type.BLOCK_DAMAGE, blockListener, Priority.Normal, this);
pm.registerEvent(Event.Type.REDSTONE_CHANGE, blockListener, Priority.Normal, this);
pm.registerEvents(blockListener, this);
PluginDescriptionFile pdfFile = this.getDescription();
System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!" );


+ 0
- 5
src/pgDev/bukkit/RedstoneCommandSigns/RCSPlayerListener.java View File

@@ -1,5 +0,0 @@
package pgDev.bukkit.RedstoneCommandSigns;
public class RCSPlayerListener {
}

Loading…
Cancel
Save