Enable normal user linking!

This commit is contained in:
AlexTheCoder 2018-09-13 04:35:37 -05:00
parent 4aeed642b3
commit 89a9f688cc
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
package mineplex.core.website;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import mineplex.core.command.CommandBase;
@ -18,7 +19,7 @@ public class LinkCommand extends CommandBase<WebsiteLinkManager>
{
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
{

View File

@ -1,8 +1,10 @@
package mineplex.core.website;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import mineplex.core.command.CommandBase;
import mineplex.core.common.util.UtilPlayer;
public class UnlinkCommand extends CommandBase<WebsiteLinkManager>
{
@ -16,7 +18,7 @@ public class UnlinkCommand extends CommandBase<WebsiteLinkManager>
{
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
{

View File

@ -89,7 +89,7 @@ public class WebsiteLinkManager extends MiniDbClientPlugin<ForumUserData>
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);
}