Skip to content

Commit

Permalink
Lets make this plugin open-source
Browse files Browse the repository at this point in the history
**Why did this plugin become open source?**
Well, I suffer a lot from the plugin to provide a better experience, but I can't do many things, so if anyone knows, it can help with PR opening.

The other thing is that it makes no sense to hide the plugin's source code, because it's not a big deal, as there is no premium thing you can't do without the Bukkit API.

The fact is, this plugin has no contract, so code modification/improve/conversion is possible, but no theft or loss.

This source is the current development version, that worked since the last update.
  • Loading branch information
montlikadani committed Mar 14, 2020
1 parent f89a971 commit 39c4984
Show file tree
Hide file tree
Showing 42 changed files with 6,188 additions and 41 deletions.
8 changes: 4 additions & 4 deletions .classpath
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<classpathentry kind="src" output="target/classes" path="java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
Expand Down
5 changes: 3 additions & 2 deletions .settings/org.eclipse.core.resources.prefs
@@ -1,4 +1,5 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/java/hu/montlikadani/tablist/Global.java=UTF-8
encoding//java/hu/montlikadani/tablist/Global.java=UTF-8
encoding/<project>=UTF-8
encoding/java=UTF-8
encoding/src=UTF-8
2 changes: 2 additions & 0 deletions .settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=false
1 change: 1 addition & 0 deletions .settings/org.eclipse.jdt.core.prefs
Expand Up @@ -11,5 +11,6 @@ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=1.8
4 changes: 0 additions & 4 deletions .settings/org.eclipse.m2e.core.prefs

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# TabList [![GitHub release](https://img.shields.io/github/release/montlikadani/TabList.svg)](https://github.com/montlikadani/TabList/releases) [![Github All Releases](https://img.shields.io/github/downloads/montlikadani/TabList/total.svg)](https://github.com/montlikadani/TabList/releases) [![GitHub issues](https://img.shields.io/github/issues/montlikadani/TabList.svg)](https://github.com/montlikadani/TabList/issues)

[![bStats](https://img.shields.io/badge/bStats-1.5-brightgreen.svg)](https://bstats.org/plugin/bukkit/TabList)
[![bStats](https://img.shields.io/badge/bStats-1.7-brightgreen)](https://bstats.org/plugin/bukkit/TabList)

***

Expand Down
2 changes: 1 addition & 1 deletion animcreator.yml
Expand Up @@ -7,7 +7,7 @@ animations:
# Display the text randomly?
random: true

# The list of texts that will apear
# The list of texts that will appear
texts:
- "&b&lTabList"
- "&6&lTabList"
Expand Down
8 changes: 6 additions & 2 deletions bungeeconfig.yml
Expand Up @@ -28,6 +28,8 @@ tablist-groups:
refresh-time: 160

# Group list
# NOTE: If the permissions are not works correctly then you should use
# a permission manager plugin such as LuckPerms.
groups:
admin:
name:
Expand Down Expand Up @@ -144,13 +146,15 @@ messages:
reload-config: "&aThe plugin successfully reloaded!"
no-permission: "&cYou don't have permission for this!"
toggle:
no-console: "&cUsage:&7 /tablist toggle <player/all>"
no-player: "&cUsage:&7 /tablist toggle <player>"
enabled: "&aThe tab is successfully turned on!"
disabled: "&cThe tab is successfully turned off!"
no-player: "&cThere is no player available on the server."
no-players-available: "&cThere is no player available on the server."
chat-messages:
- "&8&l-----------"
- "&7/&atablist reload&7 (or rl)&e -&6 Reloads the plugin and config."
- "&7/&atablist toggle&e -&6 Toggle the tablist."
- "&7/&atablist toggle [player/all]&e -&6 Toggle the tablist."
- "&8&l-----------"

# DO NOT CHANGE THIS!
Expand Down
34 changes: 13 additions & 21 deletions config.yml
Expand Up @@ -158,38 +158,26 @@ tablist-object-type:
# custom - custom value
type: ping

# Objective settings
object-settings:
# The ping side next to the player's name indicates the right side.
ping:
# Ping update time interval in seconds.
update-interval: 3
# The refresh interval when the objects are refreshing.
# Note: The health is not updating auto due to display issues.
refresh-interval: 3

# Which worlds do not show up in ping (world names)?
disabled-worlds:
#- testingWorld
# In which worlds not to display the object? (world names)?
disabled-worlds:
#- testingWorld

# Objective settings
object-settings:
# The player health (life) the player's name indicates the right side.
health:
# Which worlds do not show the players health in tab?
disabled-worlds:
- world_the_end

# Blacklisted players who do not show the health in tab.
blacklisted-players:
- exampleplayer
- players

# It only accepts number-ending placeholders, such as player levels (doubled numbers "2.1" do NOT work).
custom:
custom-value: "%player_level%"

# Refresh interval in seconds.
refresh-interval: 3

# Which worlds do not show the custom value setting (world names)?
disabled-worlds:
#- worlds
value: "%player_level%"

# Changing player tablist name with unlimited characters.
tabname:
Expand Down Expand Up @@ -228,6 +216,10 @@ tabname:
# Check for updates.
check-update: true

# Download releases to \releases folder
# This only works if the "check-update" is true.
download-updates: true

# Log plugin messages into console.
logconsole: true

Expand Down
Binary file added lib/PermissionsEx-1.23.4.jar
Binary file not shown.
Binary file added lib/RageMode.jar
Binary file not shown.
Binary file added lib/spigot-1.15.2.jar
Binary file not shown.
1 change: 1 addition & 0 deletions plugin.yml
Expand Up @@ -9,6 +9,7 @@ softdepend:
- Vault
- SuperVanish
- RageMode
- Multiverse-Core # Load this plugin before tablist to prevent issues
api-version: 1.13
# DO NOT EDIT ANYTHING ABOVE THIS LINE!

Expand Down
22 changes: 18 additions & 4 deletions pom.xml
Expand Up @@ -21,6 +21,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Expand All @@ -29,7 +33,7 @@
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>papermc</id>
Expand All @@ -55,6 +59,10 @@
<id>cubekrowd-repo</id>
<url>https://mavenrepo.cubekrowd.net/artifactory/repo/</url>
</repository>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.org/repository/maven-public</url>
</repository>
</repositories>

<dependencies>
Expand All @@ -72,6 +80,12 @@
<version>1.13.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-proxy</artifactId>
<version>1.15-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
Expand All @@ -81,7 +95,7 @@
<dependency>
<groupId>net.ess3</groupId>
<artifactId>EssentialsX</artifactId>
<version>2.17.0</version>
<version>2.17.2</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -93,7 +107,7 @@
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>Vault</artifactId>
<version>1.7.2</version>
<version>1.7.3</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand Down Expand Up @@ -122,7 +136,7 @@
<dependency>
<groupId>hu.montlikadani.ragemode</groupId>
<artifactId>RageMode</artifactId>
<version>1.6.0.000</version>
<version>1.7.0.000</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/RageMode.jar</systemPath>
</dependency>
Expand Down
Expand Up @@ -6,7 +6,6 @@
import org.apache.commons.lang.Validate;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;

import hu.montlikadani.tablist.bukkit.ReflectionUtils;
Expand All @@ -20,7 +19,7 @@ public class TabListAPI {
* Returns TabListAPI as a plugin
* @return Plugin
*/
public static Plugin getPlugin() {
public static TabList getPlugin() {
return JavaPlugin.getPlugin(TabList.class);
}

Expand Down

0 comments on commit 39c4984

Please sign in to comment.