mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-24 03:05:52 +01:00
Merge pull request #40 from eXeC64/moderators
Moderators can now affect themselves
This commit is contained in:
commit
c3bbf05cf9
@ -227,7 +227,11 @@ public class FBaseCommand {
|
|||||||
if (you.getRole().equals(Role.ADMIN)) {
|
if (you.getRole().equals(Role.ADMIN)) {
|
||||||
i.sendMessage(Conf.colorSystem+"Only the faction admin can do that.");
|
i.sendMessage(Conf.colorSystem+"Only the faction admin can do that.");
|
||||||
} else if (i.getRole().equals(Role.MODERATOR)) {
|
} else if (i.getRole().equals(Role.MODERATOR)) {
|
||||||
|
if ( i == you ) {
|
||||||
|
return true; //Moderators can control themselves
|
||||||
|
} else {
|
||||||
i.sendMessage(Conf.colorSystem+"Moderators can't control each other...");
|
i.sendMessage(Conf.colorSystem+"Moderators can't control each other...");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
i.sendMessage(Conf.colorSystem+"You must be a faction moderator to do that.");
|
i.sendMessage(Conf.colorSystem+"You must be a faction moderator to do that.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user