Skip to content

Commit

Permalink
Change to domain, fix to permissions & update API to 1.16.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve-Tech committed Jul 28, 2020
1 parent 2c0b066 commit d27eb63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.steve8playz</groupId>
<artifactId>DynamicDNS</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>


<repositories>
Expand All @@ -20,7 +20,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<version>1.16.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.steve8playz;
package me.stevetech;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
Expand Down Expand Up @@ -183,8 +183,8 @@ private void updateIPTimer() {

@Override
public boolean onCommand(final CommandSender sender, Command cmd, String label, String[] args) {
if ((cmd.getName().equalsIgnoreCase("updateip")) && (sender.hasPermission("duckdns.update"))) {
if ((args.length == 1) && (sender.hasPermission("duckdns.update.ip"))) {
if ((cmd.getName().equalsIgnoreCase("updateip")) && (sender.hasPermission("DynamicDNS.update"))) {
if ((args.length == 1) && (sender.hasPermission("DynamicDNS.update.ip"))) {
Bukkit.getServer().getScheduler().runTaskAsynchronously(this, () -> {
if (updateIP(args[0]) && sender instanceof Player) {
sender.sendMessage(messagePrefix + "Updated IP.");
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: DynamicDNS
main: me.steve8playz.DynamicDNS
version: 2.0
main: me.stevetech.DynamicDNS
version: 1.1
description: A dynamic DNS plugin for Spigot
author: Steve8Playz
api-version: 1.15
Expand Down

0 comments on commit d27eb63

Please sign in to comment.