Skip to content

Commit

Permalink
testing github webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob S committed Jul 21, 2021
1 parent 3d5cb59 commit 9d1bcd4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
case "sex":
if (player.hasPermission("snw.sex")) {
player.sendMessage("§3[§dParadisu §bツ§3] §fYou are now having sex!!!!!");
}
} else { player.sendMessage("Unknown command. Tyle \"/help\" for help."); }
return true;

case "tphere":
Expand Down Expand Up @@ -734,15 +734,18 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
unknown.add(all.getName());
}

player.sendMessage("§3§l============ §d§oOnline Players §3§l============\n" +
" \n" +
"§3\uE006 §d»§f " + owners + "\n" +
"§e\uE002 §d»§f " + devs + "\n" +
"§c\uE001 §d»§f " + builders + "\n" +
"§a\uE005 §d»§f " + staff + "\n" +
"§d\uE008 §d»§f " + supporters + "\n" +
"§7\uE00A §d»§f " + visitors + "\n" );

String result = String.join(" ", owners);
}
player.sendMessage("§3§l============= §f" + onlineammount + " §d§oOnline Players §3§l=============\n" +
" \n" +
"§3\uE006 §d»§f " + owners + "\n" +
"§e\uE002 §d»§f " + devs + "\n" +
"§c\uE001 §d»§f " + builders + "\n" +
"§a\uE005 §d»§f " + staff + "\n" +
"§d\uE008 §d»§f " + supporters + "\n" +
"§7\uE00A §d»§f " + visitors + "\n" );

} else {player.sendMessage("§3[§dParadisu §bツ§3] §7You do not have permission to use that command."); }
return true;

Expand All @@ -768,6 +771,20 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
} else {player.sendMessage("§3[§dParadisu §bツ§3] §7You do not have permission to use that command."); }
return true;

case "currenttime":
if (player.hasPermission("snw.currenttime")) {
String ampm = null;
Long ct = player.getWorld().getTime();
if (ct<1200) {
ampm = "AM";
} else { ampm = "PM";}

player.sendMessage("It is currently " + ct + " " + ampm);


} else {player.sendMessage("§3[§dParadisu §bツ§3] §7You do not have permission to use that command."); }
return true;


default:
return false;
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/me/jakedadream/ParadisuPlugin/events/toys.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.inventory.ItemStack;

import java.util.Random;

public class toys implements Listener {

@EventHandler
Expand All @@ -32,7 +34,9 @@ public void dslauncher(final PlayerInteractEvent e) {
s.setItem(item);


p.getWorld().playSound(p.getLocation(), Sound.ENTITY_PIGLIN_JEALOUS, 1F, 1F);
Random rd = new Random();
Float rpitch = rd.nextFloat();
p.getWorld().playSound(p.getLocation(), Sound.BLOCK_RESPAWN_ANCHOR_DEPLETE, 1F, rpitch);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void onEnable() {
getCommand("tempcmd").setExecutor(new snwcommands());
getCommand("list").setExecutor(new snwcommands());
getCommand("findplayercords").setExecutor(new snwcommands());
getCommand("currenttime").setExecutor(new snwcommands());
//
//
// getCommand("XYZ").setExecutor(new generalcommands());
Expand Down
7 changes: 5 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ParadisuPlugin
version: 2.3.0
version: 2.3.1
authors: [JakeDaDream, RealInstantRamen, andyinnie, _Kastle]
main: me.jakedadream.ParadisuPlugin.paradisumain
api-version: 1.16
Expand Down Expand Up @@ -160,4 +160,7 @@ commands:
usage: /<commands> <args>
aliases:
- fpc
- findpc
- findpc
currenttime:
description: tells you da time
usage: /<commands>

0 comments on commit 9d1bcd4

Please sign in to comment.