Added command logging as for default commands and temporairly removed Essentials old features as it does not compile in Eclipse :/ sorry about this. How would we go about getting this compile in Eclipse and Netbeans at the same time?

This commit is contained in:
Olof Larsson 2012-02-05 18:55:26 +01:00
parent c8558f7bbb
commit 37169dc6ec
3 changed files with 8 additions and 4 deletions

View File

@ -24,7 +24,6 @@ import com.massivecraft.factions.cmd.*;
import com.massivecraft.factions.integration.capi.CapiFeatures; import com.massivecraft.factions.integration.capi.CapiFeatures;
import com.massivecraft.factions.integration.Econ; import com.massivecraft.factions.integration.Econ;
import com.massivecraft.factions.integration.EssentialsFeatures; import com.massivecraft.factions.integration.EssentialsFeatures;
import com.massivecraft.factions.integration.EssentialsOldVersionFeatures;
import com.massivecraft.factions.integration.LWCFeatures; import com.massivecraft.factions.integration.LWCFeatures;
import com.massivecraft.factions.integration.SpoutFeatures; import com.massivecraft.factions.integration.SpoutFeatures;
import com.massivecraft.factions.integration.Worldguard; import com.massivecraft.factions.integration.Worldguard;
@ -195,7 +194,8 @@ public class P extends MPlugin
// no? try older Essentials 2.x integration method // no? try older Essentials 2.x integration method
try try
{ {
EssentialsOldVersionFeatures.integrateChat(essChat); // TODO: Creates errors in eclipse
//EssentialsOldVersionFeatures.integrateChat(essChat);
} }
catch (NoClassDefFoundError ex2) catch (NoClassDefFoundError ex2)
{ {
@ -211,7 +211,8 @@ public class P extends MPlugin
{ {
try try
{ {
EssentialsOldVersionFeatures.unhookChat(); // TODO: Creates errors in eclipse
//EssentialsOldVersionFeatures.unhookChat();
} }
catch (NoClassDefFoundError ex) catch (NoClassDefFoundError ex)
{ {

View File

@ -14,7 +14,7 @@ import com.earth2me.essentials.chat.IEssentialsChatListener;
* This Essentials integration handler is for older 2.x.x versions of Essentials which have "IEssentialsChatListener" * This Essentials integration handler is for older 2.x.x versions of Essentials which have "IEssentialsChatListener"
*/ */
public class EssentialsOldVersionFeatures public class EssentialsOldVersionFeaturesTODO
{ {
private static EssentialsChat essChat; private static EssentialsChat essChat;

View File

@ -1,5 +1,6 @@
package com.massivecraft.factions.zcore; package com.massivecraft.factions.zcore;
import org.bukkit.Bukkit;
import org.bukkit.event.player.PlayerChatEvent; import org.bukkit.event.player.PlayerChatEvent;
import org.bukkit.event.player.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerListener; import org.bukkit.event.player.PlayerListener;
@ -25,6 +26,7 @@ public class MPluginSecretPlayerListener extends PlayerListener
if (p.handleCommand(event.getPlayer(), event.getMessage())) if (p.handleCommand(event.getPlayer(), event.getMessage()))
{ {
Bukkit.getLogger().info("[PLAYER_COMMAND] "+event.getPlayer().getName()+": "+event.getMessage());
event.setCancelled(true); event.setCancelled(true);
} }
} }
@ -36,6 +38,7 @@ public class MPluginSecretPlayerListener extends PlayerListener
if (p.handleCommand(event.getPlayer(), event.getMessage())) if (p.handleCommand(event.getPlayer(), event.getMessage()))
{ {
Bukkit.getLogger().info("[PLAYER_COMMAND] "+event.getPlayer().getName()+": "+event.getMessage());
event.setCancelled(true); event.setCancelled(true);
} }
} }