A very simple plugin to let your staff view other player commands
- Tested Minecraft Versions:
- 1.8
Supports custom messages!
Permission: commandspy.use
messages.yml
Code (YAML):prefix: "&7[&aCommand&fSpy&7]"
usage: "&fCorrect Usage: /cs [on|off|reload]"
only-player: "&fOnly players can use this command"
enabled: "&fYou have enabled commandspy"
disabled: "&fYou have disabled commandspy"
reload: "&fYou reloaded &7CommandSpy&f by nvda"
format: "&7%player%&f: &7%command%"Not really sure on this but cba to test
To access the API, you need to create a folder called lib in the project dir and add this plugin to it, then add the following to your dependencys:
then to access the players which are spying useCode (XML):<dependency>
<groupId>com.nvda</groupId>
<artifactId>split</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/BC-CommandSpy.jar</systemPath>
</dependency>
the methods you want to use areCode (Java):
if (getProxy().getPluginManager().getPlugin("BC-CommandSpy") != null) {
cs = CommandSpy.getInstance();
}
Code (Java):void setSpying(ProxiedPlayer, boolean)
boolean isSpying(ProxiedPlayer)
PM me if you have issues

BC-CommandSpy v1.0
A commandspy system for bungeecord