Enable normal user linking!
This commit is contained in:
parent
4aeed642b3
commit
89a9f688cc
@ -1,5 +1,6 @@
|
|||||||
package mineplex.core.website;
|
package mineplex.core.website;
|
||||||
|
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import mineplex.core.command.CommandBase;
|
import mineplex.core.command.CommandBase;
|
||||||
@ -18,7 +19,7 @@ public class LinkCommand extends CommandBase<WebsiteLinkManager>
|
|||||||
{
|
{
|
||||||
if (args.length < 1)
|
if (args.length < 1)
|
||||||
{
|
{
|
||||||
//UtilPlayer.message(caller, F.help("/" + _aliasUsed + " XXX-XXX-XXX", "Begins linking your Minecraft account with your website link code.", Rank.ALL, ChatColor.GREEN));
|
UtilPlayer.message(caller, F.help("/" + _aliasUsed + " XXX-XXX-XXX", "Begins linking your Minecraft account with your website link code.", ChatColor.GREEN));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
package mineplex.core.website;
|
package mineplex.core.website;
|
||||||
|
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import mineplex.core.command.CommandBase;
|
import mineplex.core.command.CommandBase;
|
||||||
|
import mineplex.core.common.util.UtilPlayer;
|
||||||
|
|
||||||
public class UnlinkCommand extends CommandBase<WebsiteLinkManager>
|
public class UnlinkCommand extends CommandBase<WebsiteLinkManager>
|
||||||
{
|
{
|
||||||
@ -16,7 +18,7 @@ public class UnlinkCommand extends CommandBase<WebsiteLinkManager>
|
|||||||
{
|
{
|
||||||
if (args.length < 1)
|
if (args.length < 1)
|
||||||
{
|
{
|
||||||
//UtilPlayer.message(caller, F.help("/" + _aliasUsed + " <Player>", "Removes a link to a forum and in-game account.", Rank.ADMIN, ChatColor.RED));
|
UtilPlayer.message(caller, F.help("/" + _aliasUsed + " <Player>", "Removes a link to a forum and in-game account.", ChatColor.RED));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -89,7 +89,7 @@ public class WebsiteLinkManager extends MiniDbClientPlugin<ForumUserData>
|
|||||||
|
|
||||||
private void generatePermissions()
|
private void generatePermissions()
|
||||||
{
|
{
|
||||||
PermissionGroup.BUILDER.setPermission(Perm.LINK_COMMAND, true, true);
|
PermissionGroup.PLAYER.setPermission(Perm.LINK_COMMAND, true, true);
|
||||||
PermissionGroup.ADMIN.setPermission(Perm.UNLINK_COMMAND, true, true);
|
PermissionGroup.ADMIN.setPermission(Perm.UNLINK_COMMAND, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user