You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!this.player.hasPermission("powercamera.hidestartmessages") && !this.player.hasPermission("powercamera.hideallmessages")) this.player.sendMessage(this.plugin.getPluginChatPrefix() + ChatColor.GREEN + "Viewing the path of camera '" + this.camera_name + "'!");
92
+
if (!this.player.hasPermission("powercamera.hidestartmessages"))
93
+
this.player.sendMessage(this.plugin.getPluginChatPrefix() + ChatColor.GREEN + "Viewing the path of camera '" + this.camera_name + "'!");
if (this.plugin.getConfigPlugin().getConfig().getBoolean("camera-effects.spectator-mode")) player.setGameMode(previous_gamemode);
100
-
if (this.plugin.getConfigPlugin().getConfig().getBoolean("camera-effects.invisible")) player.setInvisible(previous_invisible);
105
+
if (this.plugin.getConfigPlugin().getConfig().getBoolean("camera-effects.spectator-mode"))
106
+
player.setGameMode(previous_gamemode);
107
+
if (this.plugin.getConfigPlugin().getConfig().getBoolean("camera-effects.invisible"))
108
+
player.setInvisible(previous_invisible);
101
109
102
-
if (!this.player.hasPermission("powercamera.hidestartmessages") && !this.player.hasPermission("powercamera.hideallmessages")) player.sendMessage(plugin.getPluginChatPrefix() + ChatColor.GREEN + "The path of camera '" + camera_name + "' has ended!");
110
+
if (!this.player.hasPermission("powercamera.hidestartmessages"))
111
+
player.sendMessage(plugin.getPluginChatPrefix() + ChatColor.GREEN + "The path of camera '" + camera_name + "' has ended!");
sender.sendMessage(plugin.getPluginChatPrefix() + ChatColor.GREEN + "Current camera stopped");
22
+
if (!sender.hasPermission("powercamera.hidestartmessages")) sender.sendMessage(plugin.getPluginChatPrefix() + ChatColor.GREEN + "Current camera stopped");
23
23
} else {
24
24
sender.sendMessage(plugin.getPluginChatPrefix() + ChatColor.RED + "No camera active!");
0 commit comments