mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-06 18:49:34 +01:00
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:
parent
c8558f7bbb
commit
37169dc6ec
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user