Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .classpath

This file was deleted.

9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/target/classes/
/target/maven-archiver/
/target/maven-status/
/target/
/bin
/.settings
/.classpath
/.project
/*.iml
23 changes: 0 additions & 23 deletions .project

This file was deleted.

12 changes: 0 additions & 12 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions .settings/org.eclipse.m2e.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions bin/config.yml

This file was deleted.

Binary file removed bin/me/vik1395/whitelist/Whitelist.class
Binary file not shown.
8 changes: 0 additions & 8 deletions bin/plugin.yml

This file was deleted.

11 changes: 6 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.vik1395</groupId>
<artifactId>WhitelistPerm</artifactId>
<version>1.2</version>
<version>1.2.1</version>
<name>WhitelistPerm</name>
<description>A whitelist plugin that only allows players with permission to join the server.</description>
<build>
<defaultGoal>package</defaultGoal>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
Expand All @@ -20,8 +21,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
Expand All @@ -39,7 +40,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.8.3-R0.1-SNAPSHOT</version>
<version>1.13.2-R0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
</project>
5 changes: 3 additions & 2 deletions src/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Allowed: "Welcome to our server"
# This message is shown to the player when he/she joins the server. you may change the message color by using & followed by the corresponding number
Allowed: "Welcome to our server"

# This is the message sent to non whitelisted players who try to join
Kick: "You are not whitelisted on this server"
# This is the message sent to non whitelisted players who try to join
5 changes: 3 additions & 2 deletions src/me/vik1395/whitelist/Whitelist.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Whitelist extends JavaPlugin implements Listener, CommandExecutor
public void onEnable()
{
getServer().getPluginManager().registerEvents(this, this);
getLogger().info("WhitelistPerm has successfully started!");
getLogger().info("WhitelistPerm v" + getDescription().getVersion() + " has successfully started!");
getLogger().info("Created by Vik1395");
saveDefaultConfig();
}
Expand All @@ -31,8 +31,9 @@ public void onPlayerJoin(PlayerLoginEvent event)
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, format(kicked));
p.kickPlayer(format(kicked));
}
else if(p.hasPermission("whitelist.allowed"))
else if(!allowed.isEmpty())
{
event.allow();
p.sendMessage(format(allowed));
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: WhitelistPerm
version: 1.2
version: 1.2.1
api-version: 1.13
description: A whitelist plugin that only allows players with permission to join the server.
author: Vik1395

main: me.vik1395.whitelist.Whitelist

commands:
commands:
4 changes: 0 additions & 4 deletions target/classes/config.yml

This file was deleted.

Binary file removed target/classes/me/vik1395/whitelist/Whitelist.class
Binary file not shown.
8 changes: 0 additions & 8 deletions target/classes/plugin.yml

This file was deleted.